/* 全ページ共通: 宇宙背景、ヘッダーの丸ボタン、スマホの「＋ MENU」(PC はスクロール後、上端にカーソルでヘッダー・右上に ＋ MENU)、ページ見出し、本文パネル、フッター(docs/requirements/home-and-gallery.md §3・§6) */
:root{
  --poko-pink:#ffb4fd;
  --poko-pink-deep:#e5559f;
  --poko-pink-line:#f08fc8;
  --poko-lilac:#f9d7ff;
  --poko-purple:#5b2a6e;
  --poko-night:#2a1533;
  --poko-pill-bg:linear-gradient(180deg,#fff 0%,#fbe8fb 100%);
  --poko-link:#b8327a;               /* 白地のリンク(#e5559f は白地で 3.4:1 と足りないので濃くする) */
  --poko-shadow-text:0 2px 0 rgba(58,22,64,.55),0 0 18px rgba(58,22,64,.45);
}

/* 名前・英字の大見出しは Peace Sans(ぽこのモックの書体、OFL)。1 ウェイトしか無いので、どの太さでもこの書体を使い太字を合成させない */
@font-face{font-family:"Poko Display";src:url(../fonts/peace-sans.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Poko Grotesk";src:url(../fonts/bricolage.woff2) format("woff2");font-weight:400 800;font-display:swap}

/* ---- 宇宙背景(画面に固定。長いページでも繰り返さない)。画像が来るまでは紺紫 ---- */
body.poko-space{background:#3a2141;color:#fff;
  /* Blocksy の青(リンク・フォームのフォーカス)をピンクに */
  --theme-palette-color-1:var(--poko-pink-deep);--theme-palette-color-2:var(--poko-link)}
body.poko-space::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:url(../img/bg.webp) center / cover no-repeat}
body.poko-space #main-container,
body.poko-space #main,
body.poko-space .site-main{background:transparent}
body.poko-space .ct-header,
body.poko-space .ct-header [data-row]{background:transparent!important;border:0!important;box-shadow:none!important}
body.poko-space .ct-footer,
body.poko-space .ct-footer [data-row]{background:transparent!important;border:0!important}
body.poko-space .poko-footer{color:#fbe8fb}
/* MU の base.css(section の上下 48px など)を打ち消す */
body.poko-space section{margin-block:0}
html.poko-noscroll{overflow:hidden}

/* ---- ロゴ(ぽっこみゅ+星乃ぽこを 1 枚にした画像)。サイト名の文字は隠す ---- */
.ct-header .site-title-container{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ct-header .site-logo-container img{height:48px;width:auto;max-width:none}
@media (max-width:767px){ .ct-header .site-logo-container img{height:36px} }
/* PC のヘッダーの高さ(Blocksy のカスタマイザーは 120px。上下が空きすぎるので詰める、2026-10-09 ぶらんち) */
@media (min-width:1000px){ [data-header*="type-1"] #header [data-row*="middle"]{--height:76px} }

/* ---- ヘッダーの丸ボタン ---- */
.ct-header .header-menu-1 > ul{gap:8px}
.ct-header .header-menu-1 > ul > li > a.ct-menu-link{
  height:auto;padding:6px 16px;border-radius:999px;
  background:var(--poko-pill-bg);border:2px solid var(--poko-pink-line);
  color:var(--poko-purple);font-weight:800;font-size:15px;letter-spacing:.02em;line-height:1.4;
  box-shadow:0 2px 0 rgba(229,85,159,.35);
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ct-header .header-menu-1 > ul > li > a.ct-menu-link:hover,
.ct-header .header-menu-1 > ul > li > a.ct-menu-link:focus-visible{
  transform:translateY(-1px);box-shadow:0 3px 0 rgba(229,85,159,.45);color:var(--poko-pink-deep);
}
.ct-header .header-menu-1 > ul > li.current-menu-item > a.ct-menu-link,
.ct-header .header-menu-1 > ul > li.current-menu-ancestor > a.ct-menu-link{background:var(--poko-pink);color:var(--poko-night)}
/* サブメニュー: Blocksy 既定の濃紺の地に紫の文字が読めなかったので、白地のパネルにする */
.ct-header .header-menu-1 .sub-menu{
  --dropdown-background-color:#fffaff;--dropdown-divider:1px dashed rgba(240,143,200,.45);
  --theme-link-initial-color:var(--poko-purple);--theme-link-hover-color:var(--poko-link);
  background:#fffaff!important;border:2px solid var(--poko-pink-line);border-radius:16px;
  box-shadow:0 12px 30px rgba(42,21,51,.35);
}
/* 3 階層目(配信ツール > 各種規約 > …)が横に出るので overflow は切らず、端の項目の角だけ丸める */
.ct-header .header-menu-1 .sub-menu > li:first-child > a.ct-menu-link{border-radius:14px 14px 0 0}
.ct-header .header-menu-1 .sub-menu > li:last-child > a.ct-menu-link{border-radius:0 0 14px 14px}
.ct-header .header-menu-1 .sub-menu > li:only-child > a.ct-menu-link{border-radius:14px}
.ct-header .header-menu-1 .sub-menu a.ct-menu-link{color:var(--poko-purple)!important;font-weight:700}
.ct-header .header-menu-1 .sub-menu a.ct-menu-link:hover,
.ct-header .header-menu-1 .sub-menu a.ct-menu-link:focus-visible,
.ct-header .header-menu-1 .sub-menu .current-menu-item > a.ct-menu-link{color:var(--poko-link)!important;background:#fde6f3}

/* ---- スマホ: 「＋ MENU」ボタン ---- */
#header .ct-header-trigger.ct-toggle{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  min-width:56px;min-height:52px;padding:4px 10px 6px;border-radius:0 0 18px 18px!important;
  /* Blocksy はボタンの背景・枠を --toggle-button-* で描くので、変数と本体の両方を指定する */
  --toggle-button-background:#fff;--toggle-button-border-width:2px;--toggle-button-border-color:var(--poko-pink-line);
  background:var(--poko-pill-bg)!important;border:2px solid var(--poko-pink-line)!important;border-top:0!important;
  color:var(--poko-purple);box-shadow:0 2px 0 rgba(229,85,159,.35);
}
#header .ct-header-trigger svg{display:none}
#header .ct-header-trigger::before{content:"＋";font-size:24px;font-weight:900;line-height:1;transition:transform .25s ease}
/* ラベルは言語設定によらず「MENU」 */
#header .ct-header-trigger .ct-label{display:block!important;font-size:0;line-height:1}
#header .ct-header-trigger .ct-label::after{content:"MENU";font-size:11px;font-weight:800;letter-spacing:.12em}
/* 開いている間は ＋ を回して × に */
#header .ct-header-trigger[aria-expanded="true"]::before,
#header .ct-header-trigger.active::before{transform:rotate(45deg)}

/* 開いたメニュー(右から出るパネル): 丸ボタンを縦に並べる */
#offcanvas .ct-panel-inner{background:linear-gradient(180deg,#3a1d47 0%,#2a1533 100%)}
#offcanvas .mobile-menu > ul > li{margin:0 0 10px}
#offcanvas .mobile-menu > ul > li > a.ct-menu-link,
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent{
  border-radius:999px;background:var(--poko-pill-bg);border:2px solid var(--poko-pink-line);
  padding:8px 18px;color:var(--poko-purple);font-weight:800;
}
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > a.ct-menu-link{color:var(--poko-purple)}
#offcanvas .mobile-menu .sub-menu a.ct-menu-link{color:#fbe8fb;font-weight:600}
/* 3 階層目(配信ツール > 各種規約 > …)は字下げと点線で親子を見せる。開閉の矢印も白く */
#offcanvas .mobile-menu .sub-menu .sub-menu{padding-left:16px;margin-left:4px;border-left:2px dashed rgba(240,143,200,.45)}
#offcanvas .mobile-menu .sub-menu .ct-toggle-dropdown-mobile svg{fill:#fbe8fb}
#offcanvas .ct-toggle-close{
  --toggle-button-background:#fff;--toggle-button-border-color:var(--poko-pink-line);
  width:52px;height:52px;border-radius:999px!important;background:var(--poko-pill-bg)!important;border:2px solid var(--poko-pink-line)!important;
  color:var(--poko-purple)!important;opacity:1;
}
#offcanvas .ct-toggle-close svg{display:none}
#offcanvas .ct-toggle-close::before{content:"＋";display:block;font-size:26px;font-weight:900;line-height:1;transform:rotate(45deg)}
@media (prefers-reduced-motion: reduce){ #header .ct-header-trigger::before{transition:none} }

/* ---- PC: スクロールしてヘッダーが画面の外に出たら(menu-follow.js が html に .poko-head-float) ----
   1. 画面の上端にカーソルを寄せると、上の丸ボタンのヘッダーが上から降りてくる(.poko-head-peek)
   2. 右上に「＋ MENU」(マウスの無いタッチの PC 向け)。押すとスマホと同じオフキャンバスを開く。ヘッダーが降りている間は引っ込める
   Blocksy は 1000px 以上でオフキャンバスの中身を PC 用(空)にするので、スマホ用を出す */
.poko-head-spacer,.poko-float-menu{display:none}
@media (min-width:1000px){
  #offcanvas .ct-panel-content[data-device=mobile]{display:block}
  #offcanvas .ct-panel-content[data-device=desktop]{display:none}

  .poko-head-float .poko-head-spacer{display:block}
  .poko-head-float #header{
    position:fixed;top:0;left:0;right:0;z-index:55;transform:translateY(-100%);
    background:linear-gradient(180deg,rgba(42,21,51,.94) 0%,rgba(58,29,71,.88) 100%)!important;backdrop-filter:blur(6px);
  }
  .poko-head-anim #header{transition:transform .25s ease,box-shadow .25s ease}
  .poko-head-peek #header{transform:none;box-shadow:0 6px 24px rgba(20,8,28,.45)!important}
  .poko-head-float body.admin-bar #header{top:32px}

  .poko-float-menu{
    display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
    position:fixed;top:0;right:24px;z-index:54;
    min-width:64px;min-height:58px;padding:4px 12px 8px;border-radius:0 0 18px 18px;cursor:pointer;
    background:var(--poko-pill-bg);border:2px solid var(--poko-pink-line);border-top:0;
    color:var(--poko-purple);font:inherit;box-shadow:0 2px 0 rgba(229,85,159,.35),0 8px 20px rgba(42,21,51,.3);
    transform:translateY(-110%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s;
  }
  .poko-head-float:not(.poko-head-peek) .poko-float-menu{transform:none;visibility:visible;transition:transform .25s ease}
  .poko-float-menu:hover,.poko-float-menu:focus-visible{color:var(--poko-pink-deep)}
  .poko-float-menu::before{content:"＋";font-size:24px;font-weight:900;line-height:1}
  .poko-float-menu__label{font-size:11px;font-weight:800;letter-spacing:.12em;line-height:1}
  body.admin-bar .poko-float-menu{top:32px}
  /* 開いている間は、パネルの閉じるボタンと重ならないよう隠す */
  body:has(#offcanvas.active) .poko-float-menu{visibility:hidden}
}
@media (prefers-reduced-motion: reduce){ .poko-head-anim #header,.poko-float-menu{transition:none!important} }

/* ---- フッター ---- */
.ct-footer .ct-footer-copyright{display:none}
.poko-footer{padding:28px 16px 8px;text-align:center;font-size:13px}
.poko-footer__nav ul{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin:0 0 8px;padding:0;list-style:none}
.poko-footer__nav a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.poko-footer__copy{margin:0;opacity:.8}

/* ---- ページ見出し: 英字の大見出し(functions.php の poko_section_label)+ 日本語のタイトル ---- */
body.poko-space .hero-section[data-type="type-1"]{text-align:center;margin-bottom:28px}
body.poko-space .hero-section .entry-header{display:flex;flex-direction:column;align-items:center}
.poko-page-en{display:block;font-family:"Poko Display",sans-serif;font-weight:900;font-size:clamp(40px,8vw,88px);
  line-height:1;color:#fff;letter-spacing:0;text-shadow:0 3px 0 rgba(58,22,64,.35)}
body.poko-space .hero-section .page-title{margin-top:10px;color:#fff;font-size:clamp(20px,3vw,30px);font-weight:900;
  letter-spacing:.04em;text-shadow:var(--poko-shadow-text)}
body.poko-space .hero-section .page-title:first-child{font-size:clamp(26px,4vw,40px)}

/* ---- 本文パネル: 長文でも読めるよう、宇宙背景の上に淡いパネルを敷き、中は濃い文字 ---- */
body.poko-space article > .entry-content{
  max-width:880px;margin:0 auto;padding:clamp(20px,4vw,44px);border-radius:24px;
  background:rgba(255,251,255,.98);border:1px solid rgba(240,143,200,.55);
  box-shadow:0 12px 34px rgba(20,4,26,.4);color:var(--poko-night);line-height:1.85;
}
body.poko-space article > .entry-content > :first-child{margin-top:0}
body.poko-space article > .entry-content > :last-child{margin-bottom:0}
body.poko-space .entry-content h2,
body.poko-space .entry-content h3,
body.poko-space .entry-content h4{color:var(--poko-purple);line-height:1.5}
body.poko-space .entry-content h2{margin:2em 0 .7em;padding:.1em 0 .1em .7em;border-left:5px solid var(--poko-pink);font-size:clamp(19px,2.4vw,23px)}
body.poko-space .entry-content h3{margin:1.6em 0 .5em;font-size:clamp(17px,2vw,19px)}
body.poko-space .entry-content h4{margin:1.4em 0 .4em;font-size:16px}
body.poko-space .entry-content a:not(.poko-btn):not(.poko-pill){color:var(--poko-link);text-decoration:underline;text-underline-offset:3px}
body.poko-space .entry-content a:not(.poko-btn):not(.poko-pill):hover{color:var(--poko-pink-deep)}
body.poko-space .entry-content ul,
body.poko-space .entry-content ol{padding-left:1.4em}
body.poko-space .entry-content li::marker{color:var(--poko-pink-deep)}
body.poko-space .entry-content hr{border:0;border-top:1px dashed rgba(229,85,159,.45);margin:2em 0}
body.poko-space .entry-content code{background:#fdf0fb;border-radius:6px;padding:.1em .4em}
body.poko-space .entry-content table{display:block;overflow-x:auto;border-collapse:collapse;max-width:100%}
body.poko-space .entry-content th,
body.poko-space .entry-content td{border:1px solid #f2d3ea;padding:.55em .8em;vertical-align:top}
body.poko-space .entry-content th{background:#fdf0fb;color:var(--poko-purple)}
/* 狭い画面では列を潰さず、表だけ横にスクロールさせる */
body.poko-space .entry-content th,
body.poko-space .entry-content td{min-width:8em}
@media (max-width:767px){
  body.poko-space article > .entry-content{margin-inline:12px;border-radius:20px}
}

/* 子テーマの部品(本文テンプレート・members.js・link-accounts.js が使う)をパネルに合わせる */
body.poko-space .entry-content .poko-card{border:1px solid rgba(240,143,200,.5);box-shadow:0 6px 18px rgba(91,42,110,.12);border-radius:18px}
body.poko-space .entry-content .poko-muted{color:#6b4a78}
body.poko-space .entry-content .poko-btn{
  display:inline-block;padding:10px 26px;border-radius:999px;margin:4px 6px 4px 0;
  background:linear-gradient(180deg,#fff 0%,#fde6f3 100%);border:3px solid var(--poko-pink-deep);
  color:var(--poko-link);font-weight:800;text-decoration:none;letter-spacing:.03em;line-height:1.5;
  box-shadow:0 3px 0 rgba(120,30,80,.3);transition:transform .15s ease, box-shadow .15s ease;
}
body.poko-space .entry-content .poko-btn:hover,
body.poko-space .entry-content .poko-btn:focus-visible{transform:translateY(-2px);box-shadow:0 5px 0 rgba(120,30,80,.3);color:var(--poko-pink-deep)}
body.poko-space .entry-content button.poko-btn{font:inherit;font-weight:800;cursor:pointer}
body.poko-space .entry-content .poko-btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}
@media (prefers-reduced-motion: reduce){ body.poko-space .entry-content .poko-btn{transition:none} }

/* 問い合わせフォーム: 入力欄は白地・濃い文字のまま、フォーカスはピンク */
body.poko-space .entry-content input:not([type=checkbox]):not([type=radio]),
body.poko-space .entry-content select,
body.poko-space .entry-content textarea{background:#fff;color:var(--poko-night);border-radius:12px}
/* Blocksy の固定の高さと本文の余白がぶつかって選択欄の文字が切れていたので、高さは中身に合わせる */
body.poko-space .entry-content select{height:auto;min-height:46px;line-height:1.5}
body.poko-space .entry-content input:focus,
body.poko-space .entry-content select:focus,
body.poko-space .entry-content textarea:focus{border-color:var(--poko-pink-deep)!important;outline:2px solid rgba(229,85,159,.25);outline-offset:1px}

/* 投稿・アーカイブ(サイトマップに残っているもの)も読めるように */
body.poko-space .entries .entry-card,
body.poko-space .ct-pagination{color:var(--poko-night)}

/* ---- Cookie バナー(Complianz): 青のボタンをピンクに、角を丸く ---- */
#cmplz-cookiebanner-container .cmplz-cookiebanner{border-radius:18px}
#cmplz-cookiebanner-container .cmplz-btn{border-radius:999px}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept{background:var(--poko-pink)!important;border-color:var(--poko-pink)!important;color:var(--poko-night)!important}
#cmplz-cookiebanner-container .cmplz-link,
#cmplz-cookiebanner-container .cmplz-message a{color:var(--poko-link)!important}

/* 画面読み上げだけに出す文字 */
.poko-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* カーソルについてくるぽこにゃー(assets/js/cursor-pokonya.js) */
@media (prefers-reduced-motion: reduce){.poko-pokonya{display:none}}

/* スペシャルサンクス(bin/content/special-thanks.html) */
body.poko-space .entry-content .poko-guide-lead{font-weight:700}
body.poko-space .entry-content .poko-credits{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:18px;margin:1.6em 0 0;padding:0;list-style:none}
/* パステルのカード。ピンク・水色・レモン・ラベンダー・ミント・ピーチの 6 色を順にくり返し、2 列でも上下左右が同じ色にならない。
   リンクは名前だけ(説明はリンクにしない)だが、::after をカードいっぱいに広げてカードのどこを押しても開く。
   名前のリンクは本文の a の指定(:not() 2 つ)に負けないよう .poko-credits を足す */
body.poko-space .entry-content .poko-credit{--card:#ffdbe9;--line:#f6b3cf;--accent:#e0679c;position:relative;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:22px 26px;border-radius:20px;
  background:var(--card);border:1px solid var(--line);box-shadow:0 6px 16px rgba(91,42,110,.10);
  transition:transform .15s ease, box-shadow .15s ease}
body.poko-space .entry-content .poko-credit:nth-child(6n+2){--card:#d8ecff;--line:#a9d1f7;--accent:#5a9fe0}
body.poko-space .entry-content .poko-credit:nth-child(6n+3){--card:#fff3c4;--line:#f1d97a;--accent:#d4a52c}
body.poko-space .entry-content .poko-credit:nth-child(6n+4){--card:#e8dcff;--line:#c7b5f5;--accent:#9b7fe0}
body.poko-space .entry-content .poko-credit:nth-child(6n+5){--card:#d4f4e4;--line:#a3e0c2;--accent:#4fb487}
body.poko-space .entry-content .poko-credit:nth-child(6n){--card:#ffe0cc;--line:#f7bd95;--accent:#e58a4e}
body.poko-space .entry-content .poko-credit:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(91,42,110,.16)}
body.poko-space .entry-content .poko-credit:focus-within{outline:3px solid var(--accent);outline-offset:3px}
body.poko-space .entry-content .poko-credits a.poko-credit__name{font-size:clamp(20px,2.4vw,24px);font-weight:900;line-height:1.4;color:#4a2a3e;
  text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:6px;outline:none}
body.poko-space .entry-content .poko-credits a.poko-credit__name::after{content:"";position:absolute;inset:0;border-radius:20px}
body.poko-space .entry-content .poko-credit:hover a.poko-credit__name{color:var(--poko-link)}
body.poko-space .entry-content .poko-credit__role{font-size:15px;font-weight:700;color:#7a6872}
/* 本文の改行に WordPress(wpautop)が足す <br> で名前と担当の間が空かないように */
body.poko-space .entry-content .poko-credit br{display:none}
@media (prefers-reduced-motion: reduce){ body.poko-space .entry-content .poko-credit{transition:none} body.poko-space .entry-content .poko-credit:hover{transform:none} }
