/* ============================================================
   認定NPO法人五条クラブ — style.css  v2
   ブレークポイント : 768px
   ブランドカラー  : #9b003f  (デザイナーSVGより確認)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #9b003f;
  --text:      #1a1a1a;
  --text-mid:  #555;
  --bg:        #fff;
  --max-width: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'RoGaramond', 'EB Garamond', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* LAYOUT */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }

/* SVGセクションタイトル（デザイナー提供） */
.section-title-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 52px;
  background: transparent;
}
/* PC/SP差し替え用picture（自身はボックスを生成せず、中のimgが従来通りに振る舞う） */
picture.swap { display: contents; }

/* CSSボタン */
.btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.82; }
.btn-sm { padding: 9px 22px; font-size: 0.85rem; }

/* SVGボタン（デザイナー提供 img wrapper） */
.btn-svg { display: inline-block; cursor: pointer; transition: opacity 0.2s; line-height: 0; }
.btn-svg:hover { opacity: 0.82; }
.btn-svg img { display: block; height: 44px; width: auto; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid #e8e8e8; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 14px 40px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img { height: 26px; width: auto; background: transparent; }
.site-logo-sp { display: none; }
.header-nav { display: flex; justify-content: space-between; align-items: center; flex: 0 0 40%; }
.header-support-sp { display: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.sp-drawer { display: none; flex-direction: column; background: #fff; border-top: 1px solid #e8e8e8; padding: 24px 28px 48px; }
.sp-drawer.open { display: flex; }
.sp-drawer a { padding: 14px 4px; font-size: 1.9rem; font-weight: 500; text-align: right; letter-spacing: 0.06em; line-height: 1.35; }
.sp-drawer a:hover { color: var(--primary); }

/* HERO */
.hero { width: 100%; overflow: hidden; line-height: 0; }
.hero-img { width: 100%; height: 750px; object-fit: cover; object-position: center; }

/* INTRO */
.intro { padding: 80px 0; text-align: center; }
.intro p { font-size: 1.05rem; line-height: 2.4; color: #333; }
.sp-br { display: none; }   /* SP専用改行（PCでは非表示） */

/* ACTIVITY REPORT (TOP) */
.section-title-svg[alt="ACTIVITY REPORT"] { margin-bottom: 80px; }
.activity-report-card { display: grid; grid-template-columns: 6fr 4fr; gap: 56px; align-items: stretch; max-width: 1105px; margin: 0 auto; }
.activity-report-text { display: flex; flex-direction: column; }
.activity-report-text .link-note { margin-top: auto; }
.activity-report-images { display: flex; flex-direction: row; gap: 10px; }
.activity-report-images img { flex: 1; min-width: 0; height: auto; object-fit: contain; }
.activity-report-text h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.9; color: #333; margin-bottom: 0; }
.activity-report-text p  { font-size: 1.05rem; line-height: 1.9; color: #333; margin-bottom: 20px; }
.activity-report-text .link-note { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 24px; }

/* SPONSOR / PARTNER */
.sponsor-flex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 48px; max-width: 900px; margin: 0 auto; }
.sponsor-flex li { font-size: 0.95rem; text-align: center; }
.sponsor-multi span { display: block; }   /* PCは縦積み（従来通り） */
.partner-flex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 48px; max-width: 900px; margin: 0 auto; }
.partner-flex li { font-size: 0.95rem; text-align: center; }

/* DONATE */
.donate-body { max-width: 700px; margin: 0 auto 36px; font-size: 1.05rem; line-height: 1.95; color: #333; text-align: center; }
.donate-btn-wrap { text-align: center; }

/* CONTACT */
.contact-section { text-align: center; }
.contact-org { font-size: 25px; font-weight: 500; margin-bottom: 20px; }
.contact-address { font-style: normal; font-size: 1.05rem; line-height: 2.1; color: #333; margin-bottom: 36px; }
.contact-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* FOOTER */
/* フッター直前のセクションの下余白をなくす（全ページ共通） */
.section:has(+ .site-footer),
article:has(+ .site-footer) .section:last-of-type { padding-bottom: 0; }
.site-footer { padding: 150px 28px; text-align: center; font-size: 13.5px; color: var(--text); font-weight: 500; }

/* 活動報告一覧 */
.page-accent { height: 4px; background: var(--primary); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 32px; }
.report-card { display: block; }
.report-card.has-link { cursor: pointer; }
.report-card.has-link:hover .report-card-title { color: var(--primary); }
.report-card-date  { font-size: 0.82rem; color: var(--text-mid); letter-spacing: 0.08em; margin-bottom: 6px; }
.report-card-title { font-size: 23px; line-height: 1.65; min-height: calc(23px * 1.65 * 3); margin-bottom: 12px; transition: color 0.2s; }
.report-card-img   { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.report-card-npo   { aspect-ratio: 1 / 1; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.report-card-npo span { color: #fff; font-size: 1.3rem; font-weight: 700; text-align: center; line-height: 1.7; }

/* 活動報告詳細 */
/* トップ画を中央寄せし、その表示幅(--eyecatch-w)にタイトル・本文の列をそろえる */
.detail-eyecatch { display: flex; justify-content: center; width: fit-content; max-width: 100%; margin: 0 auto; }
.detail-eyecatch img { display: block; height: 520px; width: auto; max-width: 100%; }
.detail-eyecatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 900px; }
.detail-eyecatch-grid img { height: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-col { max-width: var(--eyecatch-w, 1040px); margin: 0 auto; }
.detail-head { padding-top: 56px; }
.detail-date  { font-size: 14.6px; color: var(--text-mid); letter-spacing: 0.08em; white-space: nowrap; flex-shrink: 0; }
.detail-head-row { display: flex; justify-content: flex-start; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.detail-title { font-size: 31.6px; font-weight: 500; line-height: 1.55; margin-bottom: 0; }
.detail-body  { margin: 36px 0 0; }
.detail-body p { margin-bottom: 1.6em; font-size: 1.05rem; line-height: 1.95; color: #333; }
.detail-body h3 { font-size: 1.1rem; font-weight: 700; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.detail-body img { display: block; max-width: 100%; max-height: 600px; width: auto; height: auto; margin: 28px auto; }
.detail-img-row { display: flex; gap: 16px; margin: 28px 0; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.detail-img-row img { max-width: calc(50% - 8px); max-height: 480px; width: auto; height: auto; margin: 0; }
.detail-body ol, .detail-body ul.support-list { padding-left: 1.4em; margin-bottom: 1.4em; font-size: 1.05rem; line-height: 1.9; color: #333; }
.detail-nav { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; margin-top: 60px; border-top: 1px solid #e0e0e0; }
.detail-nav a { font-size: 0.9rem; color: var(--text-mid); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.detail-nav a:hover { color: var(--primary); }
.detail-nav .prev::before { content: '←'; }
.detail-nav .next::after  { content: '→'; }

/* STAFF */
.rep-section { padding: 72px 0; }
.rep-inner   { display: grid; grid-template-columns: 2fr 3fr; gap: 64px; align-items: center; max-width: 1020px; margin: 0 auto; }
.rep-img     { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.rep-label   { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 6px; }
.rep-name    { font-size: 2.2rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 28px; }
.rep-bio     { font-size: 1.05rem; line-height: 1.95; color: #333; }
.staff-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px 80px; max-width: 1020px; margin: 0 auto; }
.staff-card  { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.staff-card-img  { width: 200px; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.staff-card-name { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.04em; }
.staff-card-role { font-size: 13.8px; line-height: 1.75; color: #444; }
.officers-section { padding: 56px 0 0; text-align: center; max-width: 1020px; margin: 0 auto; }
.officers-heading { font-size: 25px; font-weight: 500; margin-bottom: 32px; }
.officers-list    { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 12px 64px; }
.officers-list li { font-size: 17px; color: #333; }
.officer-role     { color: var(--text-mid); margin-right: 6px; }

/* ============================================================ SP ============================================================ */
@media (max-width: 768px) {
  .container  { padding: 0 20px; }
  .section    { padding: 48px 0; }
  .header-inner { padding: 10px 20px; }
  .site-logo-img { display: none; }
  .site-logo-sp { display: block; text-align: center; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: 0.02em; }
  .logo-l1 { font-size: 1.16em; }                 /* 1行目「認定NPO法人」だけ少し大きく */
  .header-support-sp { margin-left: auto; margin-right: 12px; }  /* ハンバーガーのすぐ横へ */
  .header-nav    { display: none; }
  .header-support-sp { display: block; }
  .nav-toggle    { display: flex; }
  .hero-img      { height: 100vh; height: 100svh; }
  .intro         { padding: 52px 0; }
  .intro p       { font-size: 0.95rem; line-height: 2.2; }
  .sp-br         { display: inline; }              /* SPはご指定の改行位置で表示 */
  .section-title-svg { margin-bottom: 32px; }
  .activity-report-card { grid-template-columns: 1fr; gap: 20px; }
  .activity-report-text h3 { font-size: 22px; line-height: 1.6; text-align: left; margin-bottom: 1.6em; }
  .activity-report-text p  { font-size: 17px; line-height: 1.85; text-align: left; }
  .activity-report-text .link-note { font-size: 22px; line-height: 1.6; text-align: left; }
  .activity-report-text .btn-svg { align-self: flex-start; }
  .sponsor-flex, .partner-flex { grid-template-columns: 1fr; gap: 6px; max-width: 100%; }
  .sponsor-multi { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 12px; }
  .sponsor-multi span { display: inline; font-size: 0.9rem; }   /* SPは3社横並び */
  .donate-body  { font-size: 0.92rem; text-align: justify; max-width: 100%; }
  .donate-body br { display: none; }              /* SPは自然に折り返す */
  .contact-buttons { flex-direction: column; align-items: center; }
  .contact-org { font-size: 20px; }
  .report-grid  { grid-template-columns: 1fr; gap: 40px; }
  .report-card-img, .report-card-npo { aspect-ratio: 2 / 1; }
  .report-card-date  { font-size: 0.8rem; margin-bottom: 8px; }
  .report-card-title { font-size: 1.05rem; line-height: 1.6; min-height: 0; margin-top: 4px; }
  .report-card-npo span { font-size: 1.1rem; }
  /* 活動報告詳細 SP：トップ画は幅いっぱい・高さautoで比率維持。本文も全幅。 */
  .detail-eyecatch { width: 100%; }
  .detail-eyecatch img { height: auto; width: 100%; }
  .detail-eyecatch-grid { max-width: 100%; gap: 4px; }
  .detail-col   { max-width: 100%; }
  .detail-head  { padding-top: 28px; }
  .detail-head-row { flex-wrap: wrap; gap: 4px 12px; margin-bottom: 22px; }
  .detail-title { font-size: 1.4rem; line-height: 1.5; }
  .detail-date  { font-size: 13px; }
  .detail-body  { margin-top: 24px; }
  .detail-body p,
  .detail-body ol,
  .detail-body ul.support-list { font-size: 0.95rem; line-height: 1.9; }
  .detail-body h3 { font-size: 1.05rem; margin: 32px 0 14px; }
  .detail-body img { max-height: none; }
  .detail-nav   { flex-direction: row; justify-content: space-between; gap: 12px; padding: 28px 0; margin-top: 40px; }
  .detail-nav a { font-size: 0.85rem; }
  /* STAFF SP：代表は写真→テキストを縦積み・中央寄せ。スタッフは写真上・中央寄せ。 */
  .rep-inner    { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .rep-img      { aspect-ratio: auto; height: auto; max-width: 78%; margin: 0 auto; }
  .rep-label    { font-size: 0.85rem; }
  .rep-name     { font-size: 1.7rem; margin-bottom: 20px; }
  .rep-bio      { font-size: 0.95rem; text-align: justify; }
  .staff-grid   { grid-template-columns: 1fr; gap: 40px; }
  .staff-card   { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .staff-card-img { width: 200px; max-width: 62%; }
  .staff-card-name { font-size: 1.2rem; }
  .staff-card-role { font-size: 0.85rem; }
  .officers-heading { font-size: 22px; }
  .officers-list { grid-template-columns: 1fr; gap: 8px; }
  .btn-svg img  { height: 40px; }
  .btn { font-size: 18px; }   /* CSSテキストボタンの文字をCONTACTのSVGボタンに合わせて統一 */
  .header-support-sp { padding: 6px 18px; }   /* ヘッダー内なので高さは抑える */
}
