/*
 * 修正希望箇所（2025 年の「WFWPホームページ修正希望箇所」）の反映分。
 * 色は指定どおり: メイン #096975 / ボタン #F16978・#FAB041 / 背景 #E7F0F1・#FFF0DB・#FCDEE0 / 角丸 30px / ボタン余白 17px 60px
 * functions.php の wfwp-inline より後に読み込み、従来のヘッダー指定を上書きする。
 */

/* ── ヘッダー（青緑） ───────────────────────── */
.wfwp-hd-main .wfwp-nav__link { color: #FFFFFF; }
.wfwp-hd-main .wfwp-nav__link:hover { color: #FCDEE0; }
.wfwp-hd-grid__logo img { width: 200px; height: auto; }

/* SNS・検索・翻訳ボタンの帯（薄いピンク、ボタンはピンク） */
.wfwp-hd-bar .wfwp-sns--stacked a { background: #F16978; color: #FFFFFF; }
.wfwp-hd-bar .wfwp-search { border-color: #FFFFFF; border-radius: 30px; overflow: hidden; padding-left: 6px; }
.wfwp-hd-bar .wfwp-search__btn { background: #F16978; color: #FFFFFF; border-radius: 30px; min-width: 40px; }
.wfwp-translate {
  display: inline-flex; align-items: center; height: 30px; padding: 0 16px;
  border-radius: 30px; background: #F16978; color: #FFFFFF; text-decoration: none;
  font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  transition: opacity .2s;
}
.wfwp-translate::before { content: ""; width: 14px; height: 14px; margin-right: 6px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8ZM12 4c.8 1.2 1.5 2.5 1.9 4h-3.8c.4-1.5 1.1-2.8 1.9-4ZM4.3 14a8.2 8.2 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4H4.3Zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16ZM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8Zm4 12c-.8-1.2-1.5-2.5-1.9-4h3.8c-.4 1.5-1.1 2.8-1.9 4Zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4Zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6Zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.2 8.2 0 0 1 0 4h-3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8ZM12 4c.8 1.2 1.5 2.5 1.9 4h-3.8c.4-1.5 1.1-2.8 1.9-4ZM4.3 14a8.2 8.2 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4H4.3Zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16ZM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8Zm4 12c-.8-1.2-1.5-2.5-1.9-4h3.8c-.4 1.5-1.1 2.8-1.9 4Zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4Zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6Zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.2 8.2 0 0 1 0 4h-3.4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wfwp-translate:hover, .wfwp-hd-bar .wfwp-sns--stacked a:hover, .wfwp-hd-bar .wfwp-search__btn:hover { opacity: .8; }

/* メガメニュー「私たちの活動」は 4 列（SDGs / 国際協力活動 / 平和のネットワークづくり / 国内活動） */
.wfwp-mega--wide { min-width: 1040px; }
.wfwp-mega__grid--act { grid-template-columns: .9fr 1.3fr 1.4fr 1fr; }

/* ── スマホ用メニュー ───────────────────────── */
.wfwp-burger { display: none; }
.wfwp-drawer[hidden] { display: none; }
@media (max-width: 1024px) {
  .wfwp-hd-main { min-height: 60px; }
  .wfwp-hd-grid { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; box-sizing: border-box; }
  .wfwp-hd-grid__logo { padding-top: 0; }
  .wfwp-hd-grid__logo img { width: 160px; }
  .wfwp-hd-grid__contact { display: none; }
  .wfwp-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  }
  .wfwp-burger span { display: block; height: 2px; background: #FFFFFF; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .wfwp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .wfwp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .wfwp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .wfwp-drawer { background: #096975; padding: 4px 16px 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
  .wfwp-drawer__menu, .wfwp-drawer__sub { list-style: none; margin: 0; padding: 0; }
  .wfwp-drawer__menu > li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .wfwp-drawer__head { display: flex; align-items: center; justify-content: space-between; }
  .wfwp-drawer__link { flex: 1; color: #FFFFFF; text-decoration: none; font-size: 15px; padding: 14px 0; display: block; }
  .wfwp-drawer__toggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
  .wfwp-drawer__toggle::before, .wfwp-drawer__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #FFFFFF; transform: translate(-50%, -50%); transition: transform .2s; }
  .wfwp-drawer__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .wfwp-drawer__toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }
  .wfwp-drawer__sub { padding: 0 0 12px 12px; }
  .wfwp-drawer__sub a { display: block; color: #E7F0F1; text-decoration: none; font-size: 14px; padding: 8px 0; }
  .wfwp-drawer__sub a.is-head { color: #FFFFFF; font-weight: 700; margin-top: 6px; }
  .wfwp-drawer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
  .wfwp-drawer__tools .wfwp-sns a { background: #FCDEE0; color: #096975; }
  .wfwp-drawer__tools .wfwp-search { flex: 1 1 100%; background: #FFFFFF; border-radius: 30px; overflow: hidden; padding-left: 6px; }
  .wfwp-drawer__tools .wfwp-search__input { flex: 1; width: auto; font-size: 16px; height: 40px; color: #333333; }
  .wfwp-drawer__tools .wfwp-search__btn { background: #F16978; color: #FFFFFF; border-radius: 30px; height: 40px; min-width: 48px; }
  .wfwp-drawer__contact { display: block; margin-top: 20px; text-align: center; padding: 14px; border-radius: 30px; background: #F16978; color: #FFFFFF; text-decoration: none; font-weight: 600; }

  /* 帯（SNS・検索・翻訳）はスマホでも出す */
  .wfwp-hd-bar { min-height: 0; }
  .wfwp-hd-bar__inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 10px 16px; box-sizing: border-box; }
  .wfwp-hd-bar .wfwp-search { flex: 1 1 160px; max-width: 320px; }
  .wfwp-hd-bar .wfwp-search__input { flex: 1; width: auto; font-size: 16px; }
}
@media (max-width: 480px) {
  .wfwp-hd-bar .wfwp-search { flex-basis: 100%; max-width: none; order: 3; }
}

/* ── 共通（修正希望で足したセクション） ───────── */
.wfwp-rn-sec { padding: 96px 24px; }
.wfwp-rn-inner { max-width: 1080px; margin: 0 auto; }
.wfwp-rn-title { font-size: 26px; font-weight: 500; line-height: 1.5; color: #333333; margin: 0 0 12px; letter-spacing: .04em; }
.wfwp-rn-title--center { text-align: center; font-size: 30px; margin-bottom: 48px; }
.wfwp-rn-title--center::after { content: ""; display: block; width: 100px; height: 2px; margin: 1rem auto 0; background: #F16978; }
.wfwp-rn-title__year { display: block; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 15px; font-weight: 500; color: #4C4C4C; letter-spacing: .12em; margin-top: 6px; }
.wfwp-rn-sub { font-size: 16px; font-weight: 500; line-height: 1.8; color: #4C4C4C; margin: 0 0 18px; }
.wfwp-rn-text { font-size: 14px; line-height: 1.9; color: #333333; margin: 0; }
.wfwp-rn-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.wfwp-rn-btnwrap { margin-top: 32px; }
.wfwp-rn-btnwrap.is-center { text-align: center; }
.wfwp-rn-btn {
  display: inline-block; padding: 17px 60px; border: 1px solid #F16978; border-radius: 30px; background: #FCDEE0; color: #F16978;
  font-size: 15px; line-height: 1; letter-spacing: .04em; text-decoration: none; transition: background-color .2s, color .2s;
}
.wfwp-rn-btn::after { content: "　＞"; }
.wfwp-rn-btn:hover { background: #F16978; color: #FCDEE0; }
.wfwp-rn-btn.is-yellow { border-color: #FAB041; background: #FAB041; color: #FFFFFF; }
.wfwp-rn-btn.is-yellow::after { content: none; }
.wfwp-rn-btn.is-yellow:hover { background: #FFFFFF; color: #FAB041; }

/* 写真と文章の左右並び */
.wfwp-rn-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.wfwp-rn-split.is-reverse .wfwp-rn-split__media { order: 2; }
.wfwp-rn-split__media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #E7F0F1; }

/* ── メインビジュアル（写真3枚。ファーストビューに収める） ── */
.wfwp-hero { height: clamp(420px, calc(100svh - 124px), 720px); }
.wfwp-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 6s ease-out; }
.wfwp-hero__slide.is-active .wfwp-hero__photo { transform: scale(1.06); }
.wfwp-hero__btn { border-radius: 30px; padding: 12px 40px; }
.wfwp-hero__btn::after { content: "　＞"; }
@media (max-width: 781px) {
  .wfwp-hero-row { flex-direction: column-reverse; }
  .wfwp-hero { height: min(78vw, 440px); }
  .wfwp-hero__box { padding: 24px 20px 40px; }
}

/* ── 1. 団体紹介 ── */
.wfwp-rn-about { background: #FFFFFF; }

/* ── 2. 活動の柱３つ ── */
.wfwp-rn-pillars { background: #FFFFFF; }
.wfwp-rn-pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.wfwp-rn-pillar { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #FFFFFF; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.wfwp-rn-pillar__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.wfwp-rn-pillar__media .wfwp-rn-photo { transition: transform .6s ease; }
.wfwp-rn-pillar:hover .wfwp-rn-pillar__media .wfwp-rn-photo { transform: scale(1.05); }
.wfwp-rn-pillar__no { display: none; }
.wfwp-rn-pillar__body { flex: 1; display: flex; flex-direction: column; padding: 28px 28px 32px; }
.wfwp-rn-pillar.is-yellow .wfwp-rn-pillar__body { background: #FEF3E2; }
.wfwp-rn-pillar.is-pink .wfwp-rn-pillar__body { background: #FDEFF0; }
.wfwp-rn-pillar.is-green .wfwp-rn-pillar__body { background: #E7F0F1; }
.wfwp-rn-pillar__title { font-size: 23px; font-weight: 600; color: #333333; line-height: 1.4; margin: 0 0 14px; text-align: center; }
.wfwp-rn-pillar__title span { display: block; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 500; color: #096975; letter-spacing: .04em; margin-top: 4px; }
.wfwp-rn-pillar__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.wfwp-rn-pillar__list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.6; color: #333333; }
.wfwp-rn-pillar__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: #096975; }
.wfwp-rn-pillar .wfwp-rn-btnwrap { margin-top: auto; padding-top: 28px; text-align: center; }
.wfwp-rn-pillar .wfwp-rn-btn { padding: 15px 44px; background: #FFFFFF; }
.wfwp-rn-pillar .wfwp-rn-btn:hover { background: #F16978; color: #FFFFFF; }

/* ── 3. 数字で見るWFWP ── */
.wfwp-rn-stats { background: #E7F0F1; }
.wfwp-rn-stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wfwp-rn-stat { background: #FFFFFF; border-radius: 20px; padding: 32px 20px 28px; text-align: center; }
.wfwp-rn-stat__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #FCDEE0; }
.wfwp-rn-stat__icon svg { width: 32px; height: 32px; fill: #F16978; }
.wfwp-rn-stat__num { margin: 16px 0 10px; display: flex; flex-direction: column; gap: 2px; color: #096975; font-size: 15px; font-weight: 600; }
.wfwp-rn-stat__num b { font-family: Montserrat, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.1; margin-right: 2px; }
.wfwp-rn-stat__num span + span b { font-size: 30px; color: #F16978; }
.wfwp-rn-stat__num span + span { color: #F16978; }
.wfwp-rn-stat__desc { margin: 0; font-size: 13px; line-height: 1.7; color: #555555; }

/* ── 5. 支援者の声・受益者の声 ── */
.wfwp-rn-voices { background: #FEF3E2; }
.wfwp-rn-voices__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.wfwp-rn-voice { background: #FFFFFF; border-radius: 20px; overflow: hidden; padding-bottom: 32px; }
.wfwp-rn-voice__media { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 24px; }
.wfwp-rn-voice > :not(.wfwp-rn-voice__media) { margin-left: 32px; margin-right: 32px; }
.wfwp-rn-voice__label { display: inline-block; margin-bottom: 8px; padding: 4px 16px; border-radius: 30px; background: #F16978; color: #FFFFFF; font-size: 13px; font-weight: 600; }
.wfwp-rn-voice__name { font-size: 19px; font-weight: 600; color: #333333; margin: 0 0 12px; }

@media (max-width: 1024px) {
  .wfwp-rn-pillars__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .wfwp-rn-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 781px) {
  .wfwp-rn-sec { padding: 64px 16px; }
  .wfwp-rn-title { font-size: 24px; }
  .wfwp-rn-title--center { margin-bottom: 32px; }
  .wfwp-rn-split { grid-template-columns: 1fr; gap: 28px; }
  .wfwp-rn-split.is-reverse .wfwp-rn-split__media { order: 0; }
  .wfwp-rn-voices__grid { grid-template-columns: 1fr; }
  .wfwp-rn-voice > :not(.wfwp-rn-voice__media) { margin-left: 20px; margin-right: 20px; }
  .wfwp-rn-btn { padding: 16px 44px; }
}
@media (max-width: 480px) {
  .wfwp-rn-stats__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wfwp-hero__photo, .wfwp-rn-pillar__media .wfwp-rn-photo, .wfwp-rn-btn { transition: none; }
}

/* ── 活動ページ（国際協力活動・国内活動・平和のネットワークづくり）と隔年報告書 ── */
.wfwp-rn-page-sec { max-width: 1000px; margin: 0 auto; padding: 56px 0; }
.wfwp-rn-page-sec .wfwp-rn-title { font-family: Roboto, "Noto Sans JP", sans-serif; font-size: 20px; font-weight: 600; color: #096975; letter-spacing: 0; }
.wfwp-rn-page-sec .wfwp-rn-text { letter-spacing: .1em; }
.wfwp-rn-page-sec .wfwp-rn-text + .wfwp-rn-text { margin-top: 1em; }
.wfwp-rn-lead { font-size: 16px; line-height: 2.1; }
.wfwp-rn-band { position: relative; }
.wfwp-rn-band::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; }
.wfwp-rn-band.is-green::before { background: #FFFBF6; }
.wfwp-rn-band.is-yellow::before { background: #FFF0DB40; }
.wfwp-rn-band.is-pink::before { background: #FCDEE040; }
.wfwp-rn-page-sec .wfwp-rn-split__media { aspect-ratio: 4 / 3; }

.wfwp-rn-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.wfwp-rn-photos figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.wfwp-rn-page-sec .wfwp-card { margin-top: 16px; }
.wfwp-rn-textlink { margin: 20px 0 0; }
.wfwp-rn-textlink a { color: #096975; }
.wfwp-rn-icons { margin-top: 0; }
.wfwp-rn-icons.is-two { grid-template-columns: repeat(2, minmax(120px, 160px)); justify-content: center; gap: 24px 48px; }
main { overflow-x: clip; }
.wfwp-rn-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.wfwp-rn-doc { display: inline-flex; align-items: center; gap: 14px; padding: 12px 40px 12px 14px; border: 1px solid #F16978; border-radius: 30px; background: #FCDEE0; color: #F16978; text-decoration: none; transition: background-color .2s, color .2s; }
.wfwp-rn-doc:hover { background: #F16978; color: #FCDEE0; }
.wfwp-rn-doc__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #F16978; color: #FFFFFF; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; }
@media (max-width: 781px) {
  .wfwp-rn-page-sec { padding: 40px 0; }
  .wfwp-rn-photos { grid-template-columns: 1fr 1fr; }
  .wfwp-rn-icons.is-two { gap: 16px 24px; }
}
.wfwp-rn-photos.is-two { grid-template-columns: repeat(2, 1fr); }
.wfwp-rn-about .wfwp-rn-split__media { aspect-ratio: 4 / 5; max-height: 600px; }
.wfwp-rn-photo.is-top, .wfwp-rn-photos figure:has(img[height]) .wfwp-rn-photo { object-position: center 30%; }
@media (max-width: 781px) { .wfwp-rn-photos.is-two { grid-template-columns: 1fr; } .wfwp-rn-about .wfwp-rn-split__media { aspect-ratio: 4 / 3; } }
/* 本文の画像に効く .entry-content img{height:auto} より優先して枠いっぱいに敷く */
img.wfwp-rn-photo { width: 100%; height: 100% !important; max-width: none; }
/* ヘッダーの外枠は横並び（flex）なので、ドロワーは折り返して全幅の段にする */
.wfwp-hd-main { flex-wrap: wrap; }
.wfwp-hd-main .wfwp-drawer { flex: 1 1 100%; width: 100%; box-sizing: border-box; }
/* PC: ロゴ・ナビ・お問い合わせを順に並べる（従来は重ねて配置していたため 1280px 前後で重なっていた） */
@media (min-width: 1025px) {
  .wfwp-hd-grid { display: flex; align-items: center; gap: 28px; padding: 0 4%; box-sizing: border-box; }
  .wfwp-hd-grid__nav { flex: 1; min-width: 0; }
  .wfwp-hd-grid__contact { position: static; transform: none; flex: 0 0 auto; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .wfwp-nav__menu { gap: .9rem; }
  .wfwp-nav__link { font-size: 13px; }
  .wfwp-hd-grid__logo img { width: 170px; }
  .wfwp-contact-btn { width: 136px; height: 34px; }
}
