@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

/* pipopa ヘルプ — static site styles
   色：#E60012（赤枠・強調）／#D86990（pipopaピンク）／#C24A72（検索ボタン）／#333333・#4C5966（文字）／#DDDDDD（罫線）／#FBF4F7（薄ピンク面）／#EFEDEC（背景） */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #EFEDEC;
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: #BD140F; text-decoration: none; }
a:hover { color: #8f0f0b; text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
input, button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(230, 0, 18, 0.35); outline-offset: 2px; }

/* 本文へ移動（キーボード操作用。ふだんは見えません） */
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: #FFFFFF; color: #333333; border: 1px solid #DDDDDD; border-radius: 0 0 4px 0; padding: 10px 16px; font-size: 14px; }
.skip:focus { left: 0; text-decoration: none; }
/* 画面に出さず、読み上げソフトにだけ伝える文字 */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main { display: block; }
main:focus { outline: none; }

.shell { max-width: 1440px; margin: 0 auto; padding: 20px 20px 64px; }
.frame { position: relative; background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 8px; overflow: hidden; }

/* ヘッダー */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; border-bottom: 1px solid #DDDDDD; }
.hdr-logo { display: flex; align-items: center; gap: 10px; color: inherit; }
.hdr-logo:hover { text-decoration: none; opacity: 0.8; }
.logo { flex: none; display: block; height: 26px; width: auto; }
.logo-sub { font-size: 14px; color: #4C5966; }
.hdr-search { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 420px; border: 1px solid #DDDDDD; border-radius: 999px; padding: 4px 4px 4px 16px; }
.hdr-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: #333333; }
.hdr-search input::-webkit-search-cancel-button { cursor: pointer; }
.hdr-search-btn { flex: none; font-size: 13px; font-weight: 500; color: #FFFFFF; background: #C24A72; border: none; border-radius: 999px; min-height: 34px; padding: 0 18px; cursor: pointer; transition: filter 150ms ease; }
.hdr-search-btn:hover { filter: brightness(0.94); }
.hdr-index { flex: none; font-size: 14px; color: #4C5966; }

/* ページ共通 */
.page { padding: 32px 48px 48px; display: flex; flex-direction: column; gap: 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #4C5966; }
.crumbs a { color: #4C5966; }
.crumbs .sep { color: #B3B3B3; }
.crumbs .here { color: #B3B3B3; }
.block { display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 28px; font-weight: 700; line-height: 1.5; color: #333333; }
h2 { font-size: 20px; font-weight: 700; color: #333333; }
.lead { max-width: 64ch; font-size: 16px; line-height: 1.8; color: #4C5966; text-wrap: pretty; }
.rule { border-top: 1px solid #DDDDDD; padding-top: 24px; font-size: 15px; color: #4C5966; }
.group-title { display: inline-block; font-size: 18px; font-weight: 700; color: #333333; border-left: 4px solid #D86990; padding-left: 12px; }
a.group-title:hover { color: #333333; }

/* トップページ（検索とお立場だけの入口） */
.home { max-width: 760px; margin: 0 auto; padding: 64px 24px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-title { font-size: 40px; font-weight: 700; line-height: 1.4; color: #333333; }
.home-lead { max-width: 30em; margin-top: 12px; font-size: 16px; line-height: 1.9; color: #4C5966; text-wrap: pretty; }
.home-sub { margin-top: 44px; font-size: 16px; font-weight: 700; color: #333333; }
.home .cards2 { width: 100%; margin-top: 16px; text-align: left; }
.home-foot { width: 100%; margin-top: 48px; border-top: 1px solid #DDDDDD; padding-top: 24px; font-size: 14px; line-height: 1.9; color: #4C5966; text-wrap: pretty; }

/* 検索フォーム（トップ） */
.hero-search { width: 100%; max-width: 620px; margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.hero-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 999px; padding: 12px 22px; transition: border-color 150ms ease; }
.hero-field:focus-within { border-color: #D86990; }
.hero-field .search-icon { flex: none; color: #B3B3B3; }
.hero-field input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 16px; color: #333333; }
.btn-primary { flex: none; font-size: 16px; font-weight: 700; color: #FFFFFF; background: #C24A72; border: none; border-radius: 999px; min-height: 52px; padding: 0 36px; cursor: pointer; transition: filter 150ms ease, transform 150ms ease; }
.btn-primary:hover { filter: brightness(0.94); }
.btn-primary:active { transform: scale(0.97); }

/* カード類 */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card { border: 1px solid #DDDDDD; border-top: 4px solid var(--accent, #D86990); border-radius: 8px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; color: inherit; transition: background 150ms ease, box-shadow 150ms ease; }
.role-card:hover { background: #FBF4F7; box-shadow: 0 2px 8px rgba(51, 51, 51, 0.08); text-decoration: none; }
.role-card .t { font-size: 18px; font-weight: 700; color: #333333; }
.role-card .n { font-size: 15px; line-height: 1.8; color: #4C5966; }

/* 記事リスト */
.list { border: 1px solid #DDDDDD; border-radius: 8px; overflow: hidden; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid #DDDDDD; color: inherit; min-height: 44px; transition: background 150ms ease; }
.list-item:first-child { border-top: none; }
.list-item:hover { background: #FBF4F7; text-decoration: none; }
.list-item .t { font-size: 16px; font-weight: 500; color: #333333; }
.list-item .n { font-size: 14px; line-height: 1.7; color: #4C5966; }
.tag { flex: none; font-size: 13px; color: #4C5966; border: 1px solid #DDDDDD; border-radius: 4px; padding: 4px 10px; white-space: nowrap; }
.empty { font-size: 16px; line-height: 1.8; color: #4C5966; border: 1px dashed #DDDDDD; border-radius: 4px; padding: 20px; }

/* 記事ページ */
.art-layout { display: grid; grid-template-columns: 240px 1fr; align-items: start; }
.side { border-right: 1px solid #DDDDDD; padding: 24px 16px; }
.side > summary { font-size: 15px; font-weight: 700; color: #333333; cursor: pointer; padding: 8px 12px; }
.side-title { display: block; font-size: 13px; font-weight: 700; color: #4C5966; padding: 0 8px 8px; }
.side-list { display: flex; flex-direction: column; gap: 6px; }
.side-list a { font-size: 15px; line-height: 1.5; color: #4C5966; border-left: 3px solid transparent; padding: 8px 12px; }
.side-list a:hover { background: #FBF4F7; text-decoration: none; }
.side-list a.is-active { color: #333333; background: #FBF4F7; border-left-color: #E60012; font-weight: 500; }
.side-sep { height: 1px; background: #DDDDDD; margin: 12px 12px; }
.side-more { display: block; font-size: 14px; color: #4C5966; padding: 4px 12px; }

.art { padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.art h2 { font-size: 18px; }
.badge-audience { font-size: 13px; font-weight: 500; color: #4C5966; border: 1px solid #DDDDDD; border-radius: 4px; padding: 4px 10px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.meta .muted { font-size: 13px; color: #B3B3B3; }

.card-pink { background: #FBF4F7; border: 1px solid #DDDDDD; border-radius: 8px; padding: 24px; }
.card-pink h2 { margin-bottom: 8px; font-size: 18px; color: #D86990; }
.card-pink p { max-width: 64ch; font-size: 16px; line-height: 1.8; color: #333333; text-wrap: pretty; }

.where { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; color: #333333; border: 1px solid #DDDDDD; border-radius: 4px; padding: 14px 16px; }
.where .sep { color: #B3B3B3; }
.where .strong { font-weight: 500; }

.shots { display: flex; flex-direction: column; gap: 20px; }
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot-caption { font-size: 14px; font-weight: 500; color: #4C5966; }
.shot-frame { position: relative; border: 1px solid #DDDDDD; border-radius: 4px; overflow: hidden; background: #FFFFFF; }
.shot-frame img { display: block; width: 100%; height: auto; }
.mark { position: absolute; border: 2px solid #E60012; border-radius: 3px; pointer-events: none; }
.mark-no { position: absolute; width: 2.4%; min-width: 18px; max-width: 28px; aspect-ratio: 1 / 1; border-radius: 999px; background: #E60012; color: #FFFFFF; font-size: clamp(11px, 1.4vw, 16px); font-weight: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.shot-note { font-size: 14px; line-height: 1.7; color: #4C5966; }
.shot-todo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #DDDDDD; border-radius: 4px; background: #FBF4F7; min-height: 200px; padding: 24px; text-align: center; }
.shot-todo .t { font-size: 16px; font-weight: 700; color: #D86990; }
.shot-todo .n { font-size: 14px; line-height: 1.7; color: #4C5966; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; border-top: 1px solid #DDDDDD; padding-top: 16px; }
.step-no { width: 32px; height: 32px; border-radius: 999px; background: #E60012; color: #FFFFFF; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step .t { max-width: 46ch; font-size: 17px; font-weight: 500; line-height: 1.6; color: #333333; }
.step .n { max-width: 46ch; font-size: 15px; line-height: 1.8; color: #4C5966; text-wrap: pretty; }

.rows { border: 1px solid #DDDDDD; border-radius: 4px; overflow: hidden; }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; padding: 14px 16px; border-top: 1px solid #DDDDDD; }
.row:first-child { border-top: none; }
.row .l { font-size: 15px; font-weight: 500; color: #4C5966; }
.row .v { font-size: 16px; line-height: 1.8; color: #333333; }
.note-box { max-width: 72ch; font-size: 15px; line-height: 1.8; color: #333333; border: 1px solid #DDDDDD; border-radius: 4px; padding: 14px 16px; }

.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related a { border: 1px solid #DDDDDD; border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: inherit; min-height: 44px; transition: background 150ms ease; }
.related a:hover { background: #FBF4F7; text-decoration: none; }
.related .t { font-size: 16px; font-weight: 500; color: #333333; }
.related .n { font-size: 14px; line-height: 1.7; color: #4C5966; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #DDDDDD; padding-top: 20px; font-size: 15px; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rate .q { font-size: 16px; color: #333333; }
.rate-btns { display: flex; gap: 8px; }
.rate-btns button { font-size: 15px; color: #333333; background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 4px; min-height: 44px; padding: 0 28px; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.rate-btns button:hover { background: #FBF4F7; }
.rate-btns button:active { transform: scale(0.97); }
.rate-btns button.is-on { background: #FBF4F7; border-color: #D86990; }
.rate .thanks { font-size: 14px; color: #4C5966; }
.contact { font-size: 14px; line-height: 1.8; color: #4C5966; }

/* タブレット・スマートフォン */
@media (max-width: 900px) {
  .shell { padding: 12px 12px 40px; }
  .hdr { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .logo { height: 22px; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-search-btn { min-height: 38px; padding: 0 18px; }
  .page { padding: 16px 16px 32px; gap: 28px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .home { padding: 36px 16px 32px; }
  .home-title { font-size: 28px; }
  .home-sub { margin-top: 32px; }
  .home-foot { margin-top: 32px; }
  .hero-search { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .btn-primary { align-self: stretch; padding: 0 24px; }
  .cards2, .steps, .related { grid-template-columns: 1fr; }
  .steps { gap: 16px; }
  .row { grid-template-columns: 1fr; }
  .art-layout { grid-template-columns: 1fr; }
  .side { border-right: none; border-bottom: 1px solid #DDDDDD; padding: 8px 8px 12px; }
  .side[open] { padding-bottom: 16px; }
  .side-title { display: none; }
  .art { padding: 16px 16px 32px; gap: 24px; }
  .card-pink { padding: 16px; }
  .list-item { padding: 12px 16px; }
}
@media (min-width: 901px) {
  .side > summary { display: none; }
}
