/* 公開側(「みんなの投稿」セクションと個別投稿ページ)。Figma 35:194 / 95:559 / 95:607 / 95:655。M7でトップページに統合する。 */
:root { --red: #e6003c; --red-dark: #c40033; --pink: #ffe9ef; --text: #222; --muted: #666; --line: #ddd; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #fff; font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.7; font-size: 16px; }
img { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.4; }

/* ボタン・チップ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 2px solid var(--red); border-radius: 6px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; background: #fff; color: var(--red); }
.btn:hover { background: var(--pink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 60px; font-size: 20px; }
.btn-block { width: 100%; }
.btn:focus-visible, .chip:focus-visible, .share-item:focus-visible, select:focus-visible, .card-img:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }

/* 「みんなの投稿」セクション */
.posts-section { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.sec-title { color: var(--red); font-size: 40px; font-weight: 900; text-align: center; }
.sec-lead { text-align: center; margin: 12px 0 32px; }
.cta-box { border: 3px solid var(--red); padding: 28px 32px; margin-bottom: 32px; }
.cta-text h3 { color: var(--red); font-size: 26px; font-weight: 900; }
.cta-text p { margin: 10px 0 18px; }
.btn-cta { min-width: 148px; min-height: 52px; font-size: 18px; }
.filter { text-align: center; margin-bottom: 24px; }
.filter select { min-width: 270px; height: 44px; padding: 0 14px; border: 2px solid var(--red); border-radius: 6px; background: #fff; color: var(--red); font: inherit; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border: 3px solid var(--red); background: #fff; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.card-img { display: block; }
.card-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; background: #f3f3f3; }
.card-comment { margin: 0; font-size: 14px; flex: 1; overflow-wrap: anywhere; }
.card-actions { display: flex; justify-content: flex-end; gap: 8px; position: relative; }
.posts-empty { text-align: center; color: var(--muted); padding: 32px 0; }
.posts-empty[hidden] { display: none; }
.sec-more { text-align: center; margin-top: 32px; }
.btn-more { min-width: 240px; min-height: 52px; font-size: 18px; }
.sec-note { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 0; }

/* SNS共有メニュー(カード) */
.share-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 10; width: min(300px, 80vw); background: #fff; border: 2px solid var(--red); border-radius: 8px; padding: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.share-item { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 0; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; }
.share-item:hover { background: var(--pink); }
.share-msg { margin: 6px 8px 4px; font-size: 12px; color: var(--muted); }
.share-msg[hidden] { display: none; }

/* 個別投稿ページ */
.site-bar { background: var(--red); color: #fff; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 48px); font-weight: 700; }
.site-bar a { color: #fff; text-decoration: none; font-size: 14px; }
.site-bar-title { font-size: 20px; }
.post-main { max-width: 1000px; margin: 0 auto; padding: 40px 20px 64px; }
.post-title { color: var(--red); font-size: 32px; font-weight: 900; text-align: center; margin-bottom: 32px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; justify-content: center; }
.post-figure { margin: 0; background: var(--pink); border-radius: 12px; padding: 32px 32px 18px; text-align: center; }
.post-frame { border: 4px solid var(--red); background: #fff; padding: 10px; }
.post-frame img { display: block; width: 100%; height: auto; }
.post-figure figcaption { color: var(--muted); font-size: 13px; margin-top: 14px; }
.post-side h2 { font-size: 22px; margin-bottom: 8px; }
.post-comment { margin: 0 0 18px; font-size: 15px; overflow-wrap: anywhere; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.notes { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.share-msg:not(.share-menu *) { font-size: 13px; color: var(--muted); }
.invite { background: #f3f3f3; border-radius: 8px; padding: 22px; display: grid; gap: 12px; }
.invite-title { margin: 0; font-weight: 700; }
.foot-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 40px; }
.notfound { text-align: center; padding: 48px 0 24px; }
.nf-icon { width: 72px; height: 72px; line-height: 70px; margin: 0 auto 20px; border-radius: 50%; background: #eee; color: #666; font-size: 44px; }
.notfound h1 { font-size: 26px; margin-bottom: 14px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* スマホ: カードは横スワイプ(スナップあり)。個別ページは縦並び */
@media (max-width: 700px) {
  .posts-section { padding: 40px 0; }
  .sec-title, .sec-lead, .filter, .cta-box, .sec-more, .sec-note, .posts-empty { margin-left: 16px; margin-right: 16px; }
  .sec-title { font-size: 30px; }
  .cta-box { padding: 20px; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 14px; -webkit-overflow-scrolling: touch; }
  .card { flex: 0 0 78%; scroll-snap-align: center; }
  .share-menu { right: auto; left: 0; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .post-figure { padding: 20px 16px 14px; }
  .btn-row .btn { flex: 1 1 100%; }
  .post-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* 「活動報告」セクション(付箋型。Figma 35:221 / スマホ 80:473)。赤い背景に、白いタイルを、わずかに傾けて並べる。 */
.activity-section { background: var(--red); color: #fff; padding: 56px 20px 64px; overflow-x: hidden; }
.activity-inner { max-width: 1120px; margin: 0 auto; }
.act-title { font-size: 40px; font-weight: 900; text-align: center; }
.act-lead { text-align: center; margin: 12px 0 36px; font-size: 15px; }
.tiles [hidden], .tiles-more [hidden], .act-empty[hidden] { display: none !important; }
.tiles-cols { display: flex; gap: 24px; align-items: flex-start; padding: 8px 8px 0; }
.tiles-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tiles-flat { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: 24px; }  /* JavaScriptなしのとき */
.tiles-flat .tile { break-inside: avoid; margin-bottom: 28px; }
.tiles-cols-mode .tile { list-style: none; }
.tile { list-style: none; transform-origin: center; }
.tile-card { display: block; background: #fff; color: var(--text); text-decoration: none; padding: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.tile-card { transition: transform .15s ease-out, box-shadow .15s ease-out; }
.tile-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .38); }
/* PC: マウスを乗せると、ブルブルッと震えて、少し大きくなる(タッチ端末・「動きを減らす」設定では、動かさない) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tile-card:hover { transform: scale(1.04); animation: tile-shake .5s ease-in-out; }
}
@keyframes tile-shake {
  0%   { transform: scale(1.04) translate(0, 0) rotate(0); }
  12%  { transform: scale(1.04) translate(-4px, 1px) rotate(-1.6deg); }
  27%  { transform: scale(1.04) translate(4px, -1px) rotate(1.6deg); }
  42%  { transform: scale(1.04) translate(-3px, 1px) rotate(-1.2deg); }
  57%  { transform: scale(1.04) translate(3px, -1px) rotate(1.2deg); }
  72%  { transform: scale(1.04) translate(-2px, 0) rotate(-.6deg); }
  87%  { transform: scale(1.04) translate(1px, 0) rotate(.3deg); }
  100% { transform: scale(1.04) translate(0, 0) rotate(0); }
}
.tile-card:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }
.tile-head { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.sns-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 16px; line-height: 1; }
.sns-fb { background: #1877f2; font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.sns-x { background: #000; font-size: 14px; }
.tile-org { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sns { flex: none; color: var(--muted); font-size: 12px; }
.tile-shot { display: block; margin-top: 6px; background: #e6e6e6; overflow: hidden; }
.tile-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile-foot { display: block; color: var(--red); font-weight: 700; font-size: 13px; padding-top: 10px; }
.tiles-more { text-align: center; margin-top: 36px; }
.btn-more-white { min-width: 220px; min-height: 52px; padding: 0 28px; background: #fff; color: var(--red); border: 0; border-radius: 6px; font: inherit; font-weight: 900; font-size: 18px; cursor: pointer; }
.btn-more-white:disabled { opacity: .7; cursor: progress; }
.btn-more-white:focus-visible, .tile-more-card:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }
.tiles-end { margin: 0; font-weight: 700; opacity: .92; }
.act-empty { text-align: center; padding: 32px 0; font-weight: 700; }

@media (max-width: 700px) {
  .activity-section { padding: 40px 0 48px; }
  .act-title, .act-lead, .act-empty { margin-left: 16px; margin-right: 16px; }
  .act-title { font-size: 30px; }
  .tiles-scroll .tiles-flat { display: flex; column-count: auto; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 20px 28px; -webkit-overflow-scrolling: touch; }
  .tiles-scroll .tile { flex: 0 0 300px; scroll-snap-align: center; margin: 0; }
  .tiles-more { display: none; }             /* スマホは、最後のカードが「もっと見る」 */
  .tile-more { display: flex; align-items: center; }
  .tile-more-card { width: 100%; min-height: 160px; background: #fff; color: var(--red); border: 0; font: inherit; font-weight: 900; font-size: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  .tile-more-card:disabled { color: var(--muted); }
}
@media (min-width: 701px) { .tile-more { display: none; } }

/* ---- トップページの全体(M7。Figma 35:394 / スマホ 80:473) ---- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
.only-sp { display: none; }
.kv { background: var(--red); color: #fff; text-align: center; }
.kv-img { display: block; width: 100%; height: auto; }
.kv-text { padding: clamp(56px, 12vw, 140px) 20px; }
.kv-catch { font-size: clamp(30px, 6vw, 64px); font-weight: 900; letter-spacing: .04em; }
.kv-sub { margin-top: 14px; font-size: clamp(16px, 2.4vw, 24px); font-weight: 700; }
.site-nav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--red); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 12px; max-width: 1200px; display: flex; justify-content: center; gap: 6px; }
.site-nav a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 18px; color: var(--red); font-weight: 900; font-size: 16px; text-decoration: none; white-space: nowrap; border-bottom: 4px solid transparent; }
.site-nav a:hover { background: var(--pink); }
.site-nav a:focus-visible { outline: 3px solid #1a73e8; outline-offset: -3px; }

/* 投稿導線のQRコード(PCのみ) */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.qr { flex: none; width: 144px; text-align: center; }
.qr-img svg { display: block; width: 144px; height: 144px; border: 1px solid var(--line); }
.qr-cap { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* 最新情報(公式SNS。埋め込みではなく、ロゴのリンクのみ) */
.news-section { padding: 48px 20px; }
.news-box { max-width: 900px; margin: 0 auto; background: var(--pink); border-radius: 16px; padding: 36px 32px 40px; text-align: center; }
.news-title { color: var(--red); font-size: 30px; font-weight: 900; }
.news-lead { margin: 10px 0 26px; font-size: 15px; }
.news-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; justify-content: center; }
.news-links li { flex: 1 1 0; max-width: 390px; }
.news-link { display: flex; align-items: center; gap: 20px; min-height: 120px; padding: 0 28px; background: #fff; border: 2px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; text-align: left; }
.news-link:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.news-link:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.news-icon { flex: none; display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; }
.news-icon svg { width: 28px; height: 28px; }
.news-x .news-icon { background: #000; }
.news-facebook .news-icon { background: #1877f2; }
.news-text { display: flex; flex-direction: column; gap: 4px; }
.news-text strong { font-size: 18px; }
.news-open { color: var(--muted); font-size: 13px; }

/* 取り組みについて(Figma 87:819。背景は薄いグレー、赤い文字、赤い帯) */
.about-section { background: #f3f3f3; padding: 64px 20px; color: #e50044; }
.about-inner { max-width: 840px; margin: 0 auto; }
.about-kicker { margin: 0 0 10px; }
.about-kicker span, .about-themes span { display: inline-block; background: #fff; font-style: italic; font-weight: 900; }
.about-kicker span { font-size: 16px; padding: 2px 6px; }
.about-themes { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.about-themes span { font-size: 40px; line-height: 1.15; padding: 0 10px; }
.about-points { list-style: none; margin: 0 0 28px; padding: 14px 8px; background: #e50043; color: #fff; border-radius: 4px; font-weight: 900; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.about-points li::before { content: "・"; }
.about-lead p { margin: 0 0 14px; font-size: 20px; font-weight: 900; font-style: italic; line-height: 1.5; }
.about-bottom { max-width: 1184px; margin: 40px auto 0; background: #fff; border: 10px solid #e50043; padding: 40px 24px 44px; text-align: center; }
/* ロゴは、上にメインスローガン、下にサブスローガン。中央寄せで、2つの中心をそろえる */
.about-logos { width: min(360px, 80%); margin: 0 auto 20px; }
.about-logo { display: block; width: 100%; height: auto; }
.about-logo-sub { width: 96.08%; margin: 16px auto 0; }   /* サブ(幅490)は、メイン(幅510)と同じ倍率で表示し、中心をそろえる */
.about-sub { font-size: 16px; font-weight: 900; margin-bottom: 16px; }
.about-bottom p { max-width: 727px; margin: 0 auto 14px; line-height: 1.4; font-size: 14px; text-align: left; }

/* お知らせ(Figma 87:843。白い背景に、赤い帯の小見出しと、点線で区切った行事) */
.notices-section { max-width: 640px; margin: 0 auto; padding: 56px 20px 64px; }
.notices-title { color: #e50044; font-size: 34px; font-weight: 900; text-align: center; margin-bottom: 24px; }
.notices-lead { background: #e50044; color: #fff; font-size: 20px; font-weight: 700; padding: 10px; margin: 0 0 24px; }
.notices-list { list-style: none; margin: 0; padding: 0; }
.notice { padding: 24px 0; border-bottom: 2px dotted var(--line); }
.notice:last-child { border-bottom: 0; }
.notice h3 { font-size: 20px; font-weight: 900; margin-bottom: 10px; color: #000; }
.notice-date { margin: 0 0 8px; font-weight: 700; }
.notice-line { margin: 0 0 6px; }
.notice-bullets { margin: 14px 0 0; padding: 0; list-style: none; }
.notice-bullets li { position: relative; padding-left: 14px; margin-bottom: 6px; }
.notice-bullets li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: #e50044; }

/* フッター・ページの先頭へ */
.site-footer { background: var(--red); text-align: center; padding: 53px 20px 36px; }
.footer-logo { display: block; max-width: 336px; width: 80%; height: auto; margin: 0 auto 28px; }
.footer-org { margin: 0 0 20px; font-weight: 700; color: #fff; }
.footer-org a { color: #fff; text-decoration: none; }
.footer-copy { margin: 0; color: #fff; font-size: 10px; }
.top-link { position: fixed; right: 18px; bottom: 18px; z-index: 15; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 20px; font-weight: 900; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.top-link:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

@media (max-width: 900px) {
  .only-pc { display: none !important; }
  .only-sp { display: inline; }
}
@media (max-width: 700px) {
  .site-nav { position: static; border-bottom: 0; background: #f3f3f3; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
  .site-nav a { min-height: 56px; padding: 0 8px; font-size: 14px; background: #fff; border: 2px solid var(--red); border-radius: 6px; white-space: normal; text-align: center; line-height: 1.3; }
  .news-box { padding: 28px 16px 32px; }
  .news-links { flex-direction: column; gap: 14px; }
  .news-links li { max-width: none; }
  .news-link { min-height: 96px; padding: 0 18px; }
  .about-section { padding: 40px 20px; }
  .about-points { grid-template-columns: 1fr; }
  .about-themes span { font-size: 26px; }
  .about-lead p { font-size: 16px; }
  .about-bottom { padding: 28px 16px; }
  .notices-title { font-size: 28px; }
  .notices-lead { font-size: 16px; }
  .cta-box { display: block; }
  .site-footer { padding: 36px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- 飾りのロゴマーク(Figma 87:896)。各セクションに散りばめる。内容の後ろ(z-index:-1)に置き、クリックは通す ---- */
.posts-section, .activity-section, .news-section, .about-bottom { position: relative; isolation: isolate; }
.deco { position: absolute; z-index: -1; width: 98px; height: 98px; pointer-events: none; user-select: none; }
.deco-posts-a { top: 36px; right: 7%; }
.deco-posts-b { bottom: 46px; left: 7%; transform: rotate(90deg); }
.deco-activity-a { bottom: 26px; right: 5%; }
.deco-news-a { bottom: 10px; left: 6%; transform: rotate(90deg); }
.deco-about-a { top: 37px; left: 70px; transform: rotate(90deg); }
.deco-about-b { bottom: 16px; right: 63px; }
.activity-section, .news-section { overflow-x: clip; }
.notices-title img { display: block; margin: 0 auto; width: 180px; height: auto; }
/* 赤い背景は、活動報告から最新情報まで続ける(白い箱の周りが赤) */
.news-section { background: var(--red); padding: 0 20px 64px; }
.news-box { background: #fff; border-radius: 0; }
.news-link { border: 3px solid var(--red); border-radius: 0; }
@media (max-width: 1100px) { .deco-about-a, .deco-about-b { display: none; } }
@media (max-width: 700px) {
  .deco { width: 56px; height: 56px; }
  .deco-posts-a { top: 10px; right: 10px; }
  .deco-posts-b { bottom: 12px; left: 10px; }
  .deco-activity-a { bottom: 8px; right: 10px; }
  .deco-news-a { display: none; }
  .notices-title img { width: 150px; }
}

/* 活動報告が0件で、出していないとき: 最新情報の赤い背景の上にも余白を付ける */
.news-section.news-solo { padding-top: 56px; }
