/*
 * PISEL フォトコンテストシステム LP 2.0（/photo-contest/ の [pgc_photo_contest_lp]）
 * - すべてのセレクタは #pgc-lp2 で始める（テーマ GENESIS の .post_content 系より詳細度で勝つ。!important は使わない）
 * - #pgc-lp2 の外には指定しない。例外は LP を直接含む本文枠の overflow の解除だけ（画面幅いっぱいの帯が切れないように）
 * - クラス名は p2- 接頭辞。生成区間（tools/gen.py）が出す pgc- のクラス（メーター・分担表・セキュリティ）もここで整える
 * - 下層ページ（見積・ガイド等）は従来の pgc-lp.css のまま
 */
.post_content:has(> #pgc-lp2) { overflow: visible; }

/* ---------- トークン ---------- */
#pgc-lp2 {
  --navy: #0a1430;
  --navy-2: #13204a;
  --blue: #1f5fd1;
  --blue-d: #1749a8;
  --blue-l: #eaf1ff;
  --cyan: #22b8e8;
  --grad: linear-gradient(120deg, #1f5fd1 0%, #2a8fe6 55%, #22b8e8 100%);
  --ink: #0e1726;
  --text: #344054;
  --muted: #667085;
  --line: #e4e9f2;
  --soft: #f5f8fd;
  --white: #fff;
  --gold: #ffc53d;
  --r: 20px;
  --r-s: 12px;
  --shadow: 0 1px 2px rgba(10, 20, 48, .06), 0 12px 32px rgba(10, 20, 48, .10);
  --shadow-l: 0 2px 6px rgba(10, 20, 48, .08), 0 30px 60px rgba(10, 20, 48, .18);
  --wrap: 1180px;
  --gutter: 24px;

  display: block;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .04em;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt" 0;
}

/* ---------- テーマの本文スタイルを打ち消す ---------- */
#pgc-lp2 *, #pgc-lp2 *::before, #pgc-lp2 *::after { box-sizing: border-box; }
#pgc-lp2 :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, figcaption, table, thead, tbody, tr, th, td, blockquote, details, summary, section, article, header, aside, kbd, small, b) {
  margin: 0; padding: 0; border: 0; background: none; font-size: inherit; font-weight: inherit; line-height: inherit;
  text-align: inherit; color: inherit; clear: none; float: none; box-shadow: none;
}
#pgc-lp2 :is(h1, h2, h3, h4)::before, #pgc-lp2 :is(h1, h2, h3, h4)::after { content: none; }
#pgc-lp2 :is(ul, ol) { list-style: none; margin-left: 0; }
#pgc-lp2 :is(h1, h2, h3, h4) { color: var(--ink); font-weight: 700; line-height: 1.45; letter-spacing: .04em; }
@supports (word-break: auto-phrase) { #pgc-lp2 :is(h1, h2, h3, h4) { word-break: auto-phrase; text-wrap: balance; } }
#pgc-lp2 .p2-nw { display: inline-block; max-width: 100%; }
#pgc-lp2 img { display: block; max-width: 100%; height: auto; margin: 0; border: 0; box-shadow: none; }
#pgc-lp2 a { color: var(--blue); text-decoration: none; }
#pgc-lp2 strong, #pgc-lp2 b { font-weight: 700; color: var(--ink); }
#pgc-lp2 .p2-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#pgc-lp2 .p2-ico, #pgc-lp2 .pgc-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
#pgc-lp2 .p2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- レイアウト ---------- */
#pgc-lp2 .p2-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
#pgc-lp2 .p2-wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }
#pgc-lp2 .p2-sec { padding: 112px 0; }
#pgc-lp2 .p2-sec--tight { padding: 72px 0; }
#pgc-lp2 .p2-soft { background: var(--soft); }
#pgc-lp2 .p2-dark { background: radial-gradient(1200px 600px at 85% -10%, rgba(34, 184, 232, .16), transparent 60%), var(--navy); color: #c9d3ea; }
#pgc-lp2 .p2-dark :is(h2, h3, b, strong) { color: #fff; }
#pgc-lp2 .p2-center { text-align: center; }

/* 見出し */
#pgc-lp2 .p2-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
#pgc-lp2 .p2-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
#pgc-lp2 .p2-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--grad); }
#pgc-lp2 .p2-dark .p2-eyebrow { color: #7fd3f5; }
#pgc-lp2 .p2-title { font-size: clamp(30px, 3.6vw, 46px); }
#pgc-lp2 .p2-subtitle { font-size: clamp(22px, 2.4vw, 28px); text-align: center; margin-bottom: 32px; }
#pgc-lp2 .p2-lead { margin-top: 20px; font-size: 18px; color: var(--muted); }
#pgc-lp2 .p2-dark .p2-lead { color: #b6c2df; }
#pgc-lp2 .p2-small { margin-top: 18px; font-size: 14px; color: var(--muted); }
#pgc-lp2 .p2-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ボタン */
#pgc-lp2 .p2-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
#pgc-lp2 .p2-actions--center { justify-content: center; }
#pgc-lp2 .p2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: 999px; border: 2px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; text-align: center; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
#pgc-lp2 .p2-btn--lg { min-height: 62px; padding: 14px 36px; font-size: 18px; }
#pgc-lp2 .p2-btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 95, 209, .55); }
#pgc-lp2 .p2-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(31, 95, 209, .65); color: #fff; }
#pgc-lp2 .p2-btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
#pgc-lp2 .p2-btn--line:hover { border-color: var(--blue); color: var(--blue); }
#pgc-lp2 .p2-btn--white { background: #fff; color: var(--blue-d); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
#pgc-lp2 .p2-btn--white:hover { transform: translateY(-2px); color: var(--blue-d); }
#pgc-lp2 .p2-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
#pgc-lp2 .p2-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
#pgc-lp2 .p2-btn .p2-ico { width: 1.1em; height: 1.1em; }

/* 画面の枠（ブラウザ風）とスマホ */
#pgc-lp2 .p2-win { position: relative; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow-l); border: 1px solid rgba(10, 20, 48, .08); }
#pgc-lp2 .p2-win__bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #eef2f8; }
#pgc-lp2 .p2-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd7e6; }
#pgc-lp2 .p2-win__bar i:first-child { background: #ff7a6e; } #pgc-lp2 .p2-win__bar i:nth-child(2) { background: #ffc53d; } #pgc-lp2 .p2-win__bar i:nth-child(3) { background: #41c97a; }
#pgc-lp2 .p2-phone { overflow: hidden; border-radius: 34px; border: 8px solid #0b1020; background: #0b1020; box-shadow: var(--shadow-l); }
#pgc-lp2 .p2-phone img { border-radius: 26px; }

/* ---------- 0. 最初の画面 ---------- */
#pgc-lp2 .p2-hero { position: relative; overflow: hidden; padding: 72px 0 64px;
  background: radial-gradient(900px 520px at 88% 8%, rgba(34, 184, 232, .18), transparent 62%), radial-gradient(800px 600px at 60% 100%, rgba(31, 95, 209, .10), transparent 60%), linear-gradient(180deg, #f7faff, #fff 70%); }
#pgc-lp2 .p2-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
#pgc-lp2 .p2-hero__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 28px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
#pgc-lp2 .p2-hero__brand img { width: 132px; }
#pgc-lp2 .p2-hero__title { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.4; letter-spacing: .03em; }
#pgc-lp2 .p2-hero__title > .p2-nw { display: block; }
#pgc-lp2 .p2-hero__em { display: block; margin-top: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pgc-lp2 .p2-hero__lead { margin-top: 26px; max-width: 34em; font-size: 19px; line-height: 1.85; color: var(--text); }
#pgc-lp2 .p2-hero__lead strong { display: inline-block; margin-top: 4px; padding: 0 2px; background: linear-gradient(transparent 62%, rgba(255, 197, 61, .55) 62%); }
#pgc-lp2 .p2-hero__sub { margin-top: 16px; font-size: 14px; color: var(--muted); }
#pgc-lp2 .p2-hero__sub a { margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }
#pgc-lp2 .p2-hero__visual { position: relative; aspect-ratio: 10 / 7.4; }
#pgc-lp2 .p2-hero__main { position: absolute; top: 4%; left: 0; width: 88%; z-index: 1; }
#pgc-lp2 .p2-hero__phone { position: absolute; right: 0; bottom: 0; width: 27%; z-index: 2; border-width: 6px; border-radius: 28px; }
#pgc-lp2 .p2-hero__phone img { border-radius: 20px; }
#pgc-lp2 .p2-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
#pgc-lp2 .p2-facts li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-left: 1px solid var(--line); }
#pgc-lp2 .p2-facts li:first-child { border-left: 0; }
#pgc-lp2 .p2-facts b { font-size: 30px; line-height: 1.3; letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pgc-lp2 .p2-facts small { font-size: 16px; }
#pgc-lp2 .p2-facts span { font-size: 14px; color: var(--muted); }

/* ---------- 1. 6つの理由 ---------- */
#pgc-lp2 .p2-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#pgc-lp2 .p2-reason a { position: relative; display: block; height: 100%; padding: 34px 30px 30px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
#pgc-lp2 .p2-reason a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d8f5; }
#pgc-lp2 .p2-reason__ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(31, 95, 209, .7); }
#pgc-lp2 .p2-reason__ico .p2-ico { width: 28px; height: 28px; }
#pgc-lp2 .p2-reason__no { position: absolute; top: 26px; right: 28px; font-size: 40px; font-weight: 700; line-height: 1; color: #edf2fb; letter-spacing: 0; }
#pgc-lp2 .p2-reason__title { margin: 22px 0 10px; font-size: 22px; }
#pgc-lp2 .p2-reason p { font-size: 16px; line-height: 1.85; }

/* ---------- 2. 募集ページ ---------- */
#pgc-lp2 .p2-tpl__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 18px; color: #fff; font-size: 18px; font-weight: 700; }
/* 9つのテンプレート: 押すと開く（閉じているときは見出しの帯だけ） */
#pgc-lp2 .p2-tpls-more { margin-bottom: 44px; }
#pgc-lp2 .p2-tpls-more__sum { justify-content: space-between; margin: 0; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; cursor: pointer; list-style: none; transition: background .2s, border-color .2s; }
#pgc-lp2 .p2-tpls-more__sum::-webkit-details-marker { display: none; }
#pgc-lp2 .p2-tpls-more__sum:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
#pgc-lp2 .p2-tpls-more__btn { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-size: 14px; }
#pgc-lp2 .p2-tpls-more__btn .p2-ico { transition: transform .2s; }
#pgc-lp2 .p2-tpls-more[open] .p2-tpls-more__btn .p2-ico { transform: rotate(45deg); }
#pgc-lp2 .p2-tpls-more__close, #pgc-lp2 .p2-tpls-more[open] .p2-tpls-more__open { display: none; }
#pgc-lp2 .p2-tpls-more[open] .p2-tpls-more__close { display: inline; }
#pgc-lp2 .p2-tpls-more[open] .p2-tpls-more__sum { margin-bottom: 18px; }
#pgc-lp2 .p2-tpls-more .p2-tpls { margin-bottom: 0; }
#pgc-lp2 .p2-tag { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
#pgc-lp2 .p2-tag--glow { background: linear-gradient(120deg, #ff6b9a, #ffb347); color: #fff; box-shadow: 0 0 20px rgba(255, 140, 120, .45); }
#pgc-lp2 .p2-tpls { display: grid; gap: 18px; margin-bottom: 44px; }
#pgc-lp2 .p2-tpls--motion { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#pgc-lp2 .p2-tpls--std { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#pgc-lp2 .p2-tpls figure { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); transition: transform .25s; }
#pgc-lp2 .p2-tpls figure:hover { transform: translateY(-4px) scale(1.02); }
#pgc-lp2 .p2-tpls img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
#pgc-lp2 .p2-tpls figcaption { padding: 12px 14px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#pgc-lp2 .p2-tpls figcaption b { display: block; color: var(--ink); font-size: 15px; }
#pgc-lp2 .p2-tpls--motion li:first-child { grid-column: span 2; grid-row: span 2; }
#pgc-lp2 .p2-tpls--motion li:first-child figcaption { font-size: 15px; }
#pgc-lp2 .p2-tpls--motion li:first-child figcaption b { font-size: 20px; }
#pgc-lp2 .p2-tpls--motion { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#pgc-lp2 .p2-tpls a { display: block; height: 100%; color: inherit; }
#pgc-lp2 .p2-tpls a figure { position: relative; height: 100%; }
#pgc-lp2 .p2-play { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(10, 20, 48, .78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(6px); }
#pgc-lp2 .p2-play::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
#pgc-lp2 .p2-tpls--motion li:first-child .p2-play { top: 16px; right: 16px; padding: 8px 18px 8px 14px; font-size: 14px; background: linear-gradient(120deg, #ff6b9a, #ffb347); box-shadow: 0 8px 20px -6px rgba(255, 120, 120, .6); }
#pgc-lp2 .p2-tpls a:hover .p2-play { background: var(--grad); }
#pgc-lp2 .p2-tpl__hint { margin-left: auto; color: #9fb0d4; font-size: 14px; font-weight: 400; }

/* チェックの並び */
#pgc-lp2 .p2-points { display: grid; gap: 12px; margin-top: 28px; }
#pgc-lp2 .p2-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.75; }
#pgc-lp2 .p2-points .p2-ico { margin-top: .3em; padding: 3px; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--blue-l); color: var(--blue); stroke-width: 3; }
#pgc-lp2 .p2-points--light { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin-top: 8px; }
#pgc-lp2 .p2-points--light li { color: #d5def0; }
#pgc-lp2 .p2-points--light .p2-ico { background: rgba(127, 211, 245, .16); color: #7fd3f5; }

/* ---------- 3〜4. 画面と説明を左右に ---------- */
#pgc-lp2 .p2-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
#pgc-lp2 .p2-split--rev .p2-split__text { order: 2; }
#pgc-lp2 .p2-split .p2-title { font-size: clamp(28px, 3vw, 40px); }
#pgc-lp2 .p2-split .p2-lead { font-size: 17px; }
#pgc-lp2 .p2-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
#pgc-lp2 .p2-keys div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--soft); }
#pgc-lp2 .p2-keys dt { display: flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font-size: 13px; }
#pgc-lp2 .p2-keys dd { font-size: 15px; font-weight: 700; color: var(--ink); }
#pgc-lp2 kbd { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; background: #fff; border: 1px solid #cdd6e6; box-shadow: 0 3px 0 #cdd6e6;
  font: 700 15px/1 ui-sans-serif, system-ui, sans-serif; color: var(--ink); }

/* ---------- 5. データ ---------- */
#pgc-lp2 .p2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
#pgc-lp2 .p2-card { padding: 30px 26px; border-radius: var(--r); background: var(--soft); }
#pgc-lp2 .p2-card--accent { background: var(--grad); color: #e9f2ff; }
#pgc-lp2 .p2-card--accent :is(h3, strong) { color: #fff; }
#pgc-lp2 .p2-card__ico { width: 34px; height: 34px; color: var(--blue); }
#pgc-lp2 .p2-card--accent .p2-card__ico { color: #fff; }
#pgc-lp2 .p2-card__title { margin: 18px 0 10px; font-size: 19px; }
#pgc-lp2 .p2-card p { font-size: 15px; line-height: 1.8; }

/* ---------- 6. プリント ---------- */
#pgc-lp2 .p2-print { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
#pgc-lp2 .p2-print__price { padding: 40px 36px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
#pgc-lp2 .p2-print__k { color: var(--blue); font-weight: 700; letter-spacing: .1em; }
#pgc-lp2 .p2-print__v { margin: 8px 0 16px; color: var(--ink); font-size: 22px; font-weight: 700; }
#pgc-lp2 .p2-print__v b { font-size: 56px; line-height: 1.1; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pgc-lp2 .p2-print__v small { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 400; }
#pgc-lp2 .p2-print__d { margin-bottom: 26px; font-size: 15px; }
#pgc-lp2 .p2-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#pgc-lp2 .p2-work { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
#pgc-lp2 .p2-work img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
#pgc-lp2 .p2-work p { padding: 12px 16px 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
#pgc-lp2 .p2-work b { display: block; font-size: 16px; }
#pgc-lp2 .p2-print > .p2-note { grid-column: 1 / -1; margin-top: 0; text-align: right; }

/* ---------- 7. 比較表 ---------- */
#pgc-lp2 .p2-cmp-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); background: #fff; }
#pgc-lp2 .p2-cmp { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.6; }
#pgc-lp2 .p2-cmp :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#pgc-lp2 .p2-cmp thead th { background: #f3f6fb; color: var(--ink); font-weight: 700; text-align: center; font-size: 15px; }
#pgc-lp2 .p2-cmp thead th small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
#pgc-lp2 .p2-cmp tbody th { width: 22%; color: var(--ink); font-weight: 700; }
#pgc-lp2 .p2-cmp td { color: var(--muted); text-align: center; }
#pgc-lp2 .p2-cmp .p2-cmp__us { background: #f1f6ff; color: var(--text); }
#pgc-lp2 .p2-cmp thead .p2-cmp__us { background: var(--grad); color: #fff; font-size: 18px; letter-spacing: .08em; }
#pgc-lp2 .p2-cmp td.p2-cmp__us b { display: block; color: var(--blue-d); font-size: 16px; }
#pgc-lp2 .p2-cmp tr:last-child :is(th, td) { border-bottom: 0; }

/* ---------- 8. 料金 ---------- */
#pgc-lp2 .p2-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
#pgc-lp2 .p2-plan { position: relative; display: flex; flex-direction: column; padding: 32px 24px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
#pgc-lp2 .p2-plan--hot { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
#pgc-lp2 .p2-plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 3px 16px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
#pgc-lp2 .p2-plan__name { font-size: 20px; text-align: center; }
#pgc-lp2 .p2-plan__for { margin-top: 6px; min-height: 3.4em; font-size: 14px; line-height: 1.7; color: var(--muted); text-align: center; }
#pgc-lp2 .p2-plan__price { margin-top: 14px; color: var(--ink); text-align: center; font-weight: 700; line-height: 1; }
#pgc-lp2 .p2-plan__num { font-size: 58px; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pgc-lp2 .p2-plan__unit { margin-left: 4px; font-size: 20px; }
#pgc-lp2 .p2-plan__per { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
#pgc-lp2 .p2-plan__list { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
#pgc-lp2 .p2-plan__list li { position: relative; padding-left: 22px; }
#pgc-lp2 .p2-plan__list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
#pgc-lp2 .p2-plan__list .p2-plan__base { padding-left: 0; color: var(--blue-d); font-weight: 700; }
#pgc-lp2 .p2-plan__list .p2-plan__base::before { content: "＋"; position: static; display: inline; margin-right: 4px; border: 0; transform: none; }
/* お任せ範囲のメーター（生成区間の pgc-meter） */
#pgc-lp2 .pgc-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; }
#pgc-lp2 .pgc-meter li { padding: 5px 2px; border-radius: 6px; background: #eef2f8; color: #98a2b3; font-size: 11px; line-height: 1.3; text-align: center; letter-spacing: 0; }
#pgc-lp2 .pgc-meter li.pgc-on { background: var(--blue-l); color: var(--blue-d); font-weight: 700; }
/* 料金の注記・標準機能・オプション */
#pgc-lp2 .pgc-price-notes { margin-top: 24px; font-size: 13px; line-height: 1.8; color: var(--muted); }
#pgc-lp2 .p2-price-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
#pgc-lp2 .p2-box { padding: 26px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
#pgc-lp2 .p2-box__title { margin-bottom: 14px; font-size: 17px; }
#pgc-lp2 .p2-box__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
#pgc-lp2 .pgc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#pgc-lp2 .pgc-chips li { padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
#pgc-lp2 .pgc-chips--opt li { background: #fff; }
#pgc-lp2 .pgc-chips li b { margin-left: 6px; color: var(--blue-d); }
/* 分担表（生成区間の pgc-disclose・pgc-matrix） */
#pgc-lp2 .pgc-disclose { margin-top: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
#pgc-lp2 .pgc-disclose__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; }
#pgc-lp2 .pgc-disclose__sum::-webkit-details-marker { display: none; }
#pgc-lp2 .pgc-disclose[open] .pgc-disclose__sum .pgc-ico { transform: rotate(45deg); }
#pgc-lp2 .pgc-disclose__body { padding: 0 24px 24px; font-size: 14px; }
#pgc-lp2 .pgc-matrix__lead { margin-bottom: 14px; color: var(--muted); }
#pgc-lp2 .pgc-matrix-wrap { overflow-x: auto; }
#pgc-lp2 .pgc-matrix { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
#pgc-lp2 .pgc-matrix :is(th, td) { padding: 10px 8px; border: 1px solid var(--line); vertical-align: middle; }
#pgc-lp2 .pgc-matrix thead th { background: #f3f6fb; color: var(--ink); font-weight: 700; text-align: center; }
#pgc-lp2 .pgc-matrix tbody th { color: var(--ink); text-align: left; font-weight: 400; }
#pgc-lp2 .pgc-role { text-align: center; }
#pgc-lp2 .pgc-role small { display: block; color: var(--muted); font-size: 11px; }
#pgc-lp2 .pgc-role--pg { background: #eaf1fd; color: var(--blue-d); font-weight: 700; }
#pgc-lp2 .pgc-role--opt { background: #fff8ee; }
#pgc-lp2 .pgc-matrix__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
#pgc-lp2 .pgc-matrix__legend li { display: flex; align-items: center; gap: 6px; }
#pgc-lp2 .pgc-matrix__legend li::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
#pgc-lp2 .pgc-matrix__legend .pgc-role--pg::before { background: #eaf1fd; border-color: #b9cdf3; }
#pgc-lp2 .pgc-matrix__legend .pgc-role--opt::before { background: #fff8ee; border-color: #f0c98c; }
#pgc-lp2 .pgc-matrix__legend li.pgc-role--pg, #pgc-lp2 .pgc-matrix__legend li.pgc-role--opt { background: none; color: var(--muted); font-weight: 400; }
#pgc-lp2 .pgc-matrix__hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
#pgc-lp2 .pgc-matrix__ind { margin-top: 16px; }
#pgc-lp2 .pgc-matrix__ind-title { font-weight: 700; color: var(--ink); }
#pgc-lp2 .pgc-dots li { position: relative; padding-left: 16px; }
#pgc-lp2 .pgc-dots li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
#pgc-lp2 .p2-price-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ---------- 9. はじめ方 ---------- */
#pgc-lp2 .p2-starts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#pgc-lp2 .p2-start { display: flex; flex-direction: column; padding: 40px 36px 36px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
#pgc-lp2 .p2-start:first-child { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
#pgc-lp2 .p2-start__k { color: var(--blue); font-weight: 700; letter-spacing: .1em; }
#pgc-lp2 .p2-start__title { margin: 8px 0 20px; font-size: 22px; }
#pgc-lp2 .p2-start__steps { display: grid; gap: 10px; margin-bottom: 28px; counter-reset: p2s; flex: 1; }
#pgc-lp2 .p2-start__steps li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.7; counter-increment: p2s; }
#pgc-lp2 .p2-start__steps li::before { content: counter(p2s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); font-size: 14px; font-weight: 800; }
#pgc-lp2 .p2-start .p2-btn { align-self: flex-start; }

/* ---------- 10. セキュリティ（生成区間の pgc-secure） ---------- */
#pgc-lp2 .pgc-secure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#pgc-lp2 .pgc-secure li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-s); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 15px; line-height: 1.7; color: #c9d3ea; }
#pgc-lp2 .pgc-secure .pgc-ico { width: 26px; height: 26px; color: #7fd3f5; }
#pgc-lp2 .pgc-secure strong { color: #fff; }
#pgc-lp2 .pgc-secure li:last-child:nth-child(3n+1) { grid-column: 1 / -1; justify-content: center; }   /* 3列で1つ余る最後の項目（脆弱性診断）は横いっぱいに */
/* SECURITY ACTION の自己宣言: ロゴは白地の板に置く（暗い背景を透けさせない）。高さ 64px（最小 34px） */
#pgc-lp2 .p2-sa { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: #c9d3ea; font-size: 15px; line-height: 1.7; }
#pgc-lp2 .p2-sa img { flex: none; width: 80px; height: 80px; padding: 8px; border-radius: 10px; background: #fff; }
#pgc-lp2 .p2-sa strong { color: #fff; }
/* PISELの概要 */
#pgc-lp2 .p2-about { background: var(--soft); }
#pgc-lp2 .p2-about__def { margin: 0 0 32px; font-size: 17px; line-height: 2; color: var(--ink); }
#pgc-lp2 .p2-about__spec { margin: 0; border-top: 1px solid var(--line); }
#pgc-lp2 .p2-about__spec > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
#pgc-lp2 .p2-about__spec dt { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.8; }
#pgc-lp2 .p2-about__spec dd { margin: 0; font-size: 16px; line-height: 1.8; color: var(--text); }
@media (max-width: 767px) {
  #pgc-lp2 .p2-about__def { font-size: 16px; line-height: 1.9; }
  #pgc-lp2 .p2-about__spec > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 2px; }
}
@media (max-width: 767px) { #pgc-lp2 .p2-sa { justify-content: flex-start; font-size: 14px; } #pgc-lp2 .p2-sa img { width: 68px; height: 68px; padding: 6px; } }
#pgc-lp2 .p2-secmore { margin-top: 24px; text-align: center; }
#pgc-lp2 .p2-secmore a { display: inline-flex; align-items: center; gap: 8px; color: #7fd3f5; font-weight: 700; }

/* ---------- 11. よくある質問 ---------- */
#pgc-lp2 .p2-faq { display: grid; gap: 12px; }
#pgc-lp2 .p2-faq__item { border-radius: var(--r-s); background: var(--soft); }
#pgc-lp2 .p2-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.6; }
#pgc-lp2 .p2-faq__item summary::-webkit-details-marker { display: none; }
#pgc-lp2 .p2-faq__item summary .p2-ico { color: var(--blue); transition: transform .2s; }
#pgc-lp2 .p2-faq__item[open] summary .p2-ico { transform: rotate(45deg); }
#pgc-lp2 .p2-faq__a { padding: 0 24px 22px; font-size: 16px; line-height: 1.9; }
#pgc-lp2 .p2-faq__a a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. 最後の入口 ---------- */
#pgc-lp2 .p2-final { position: relative; overflow: hidden; padding: 104px 0; background: var(--grad); color: #e6f0ff; text-align: center; }
#pgc-lp2 .p2-final::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); pointer-events: none; }
#pgc-lp2 .p2-final__in { position: relative; }
#pgc-lp2 .p2-final__title { color: #fff; font-size: clamp(30px, 3.6vw, 46px); }
#pgc-lp2 .p2-final__text { margin-top: 16px; font-size: 18px; }
#pgc-lp2 .p2-final__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 32px; font-size: 15px; }
#pgc-lp2 .p2-final__links a { color: #fff; text-decoration: underline; text-underline-offset: 4px; opacity: .92; }

/* ---------- タブレット ---------- */
@media (max-width: 1099px) {
  #pgc-lp2 .p2-hero__in { grid-template-columns: 1fr; gap: 40px; }
  #pgc-lp2 .p2-hero__visual { max-width: 720px; width: 100%; margin: 0 auto; }
  #pgc-lp2 .p2-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pgc-lp2 .p2-tpls--motion { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pgc-lp2 .p2-tpls--std { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #pgc-lp2 .p2-split { grid-template-columns: 1fr; gap: 40px; }
  #pgc-lp2 .p2-split--rev .p2-split__text { order: 0; }
  #pgc-lp2 .p2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pgc-lp2 .p2-print { grid-template-columns: 1fr; }
  #pgc-lp2 .p2-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  #pgc-lp2 .pgc-secure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pgc-lp2 .p2-points--light { grid-template-columns: 1fr; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 767px) {
  #pgc-lp2 { --gutter: 16px; font-size: 16px; }
  #pgc-lp2 .p2-sec { padding: 72px 0; }
  #pgc-lp2 .p2-head { margin-bottom: 36px; }
  #pgc-lp2 .p2-lead { font-size: 16px; }
  #pgc-lp2 .p2-hero { padding: 36px 0 48px; }
  #pgc-lp2 .p2-hero__brand { margin-bottom: 18px; }
  #pgc-lp2 .p2-hero__brand img { width: 108px; }
  #pgc-lp2 .p2-hero__lead { font-size: 16px; }
  #pgc-lp2 .p2-actions { flex-direction: column; }
  #pgc-lp2 .p2-actions .p2-btn { width: 100%; }
  #pgc-lp2 .p2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  #pgc-lp2 .p2-facts li { padding: 16px 16px; }
  #pgc-lp2 .p2-facts li:nth-child(3) { border-left: 0; }
  #pgc-lp2 .p2-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  #pgc-lp2 .p2-facts b { font-size: 24px; }
  #pgc-lp2 .p2-facts span { font-size: 12px; }
  #pgc-lp2 .p2-reasons, #pgc-lp2 .p2-cards, #pgc-lp2 .p2-starts, #pgc-lp2 .p2-plans, #pgc-lp2 .p2-price-more, #pgc-lp2 .pgc-secure, #pgc-lp2 .p2-works { grid-template-columns: 1fr; }
  #pgc-lp2 .p2-reason a { padding: 26px 22px 24px; }
  #pgc-lp2 .p2-tpls--std { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #pgc-lp2 .p2-tpls--motion { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #pgc-lp2 .p2-tpls figcaption { padding: 8px 10px 10px; font-size: 12px; }
  #pgc-lp2 .p2-keys { grid-template-columns: 1fr; }
  #pgc-lp2 .p2-print__price { padding: 30px 24px; }
  #pgc-lp2 .p2-print__v b { font-size: 46px; }
  #pgc-lp2 .p2-start { padding: 30px 22px 26px; }
  #pgc-lp2 .p2-start .p2-btn { align-self: stretch; }
  #pgc-lp2 .p2-final { padding: 72px 0; }
  #pgc-lp2 .p2-plan__for { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #pgc-lp2 * { transition: none; }
}

/* 作品コンテスト・公募のページ（works）。固定ページの枠に置くので、テーマのページ見出しは隠して、このページの最初の画面を見出しにする */
body:has(#pgc-lp2.p2--works) #page_header { display: none; }
body:has(#pgc-lp2.p2--works) #bread_crumb { margin-bottom: 0; }
#pgc-lp2 .p2w-center { text-align: center; }
#pgc-lp2 .p2w-center .p2-lead { margin-left: auto; margin-right: auto; }
#pgc-lp2.p2--works .p2-about__spec a { color: var(--blue, #1f5fd1); text-decoration: underline; }
#pgc-lp2 .p2w-samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
#pgc-lp2 .p2w-sample { min-width: 0; }
#pgc-lp2 .p2w-sample__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
#pgc-lp2 .p2w-sample__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
#pgc-lp2 .p2w-sample__link:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 3px; }
#pgc-lp2 .p2w-sample__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
#pgc-lp2 .p2w-sample__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
#pgc-lp2 .p2w-sample__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
#pgc-lp2 .p2w-sample__title { color: var(--ink); font-size: 18px; line-height: 1.5; }
#pgc-lp2 .p2w-sample__text { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
#pgc-lp2 .p2w-sample__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--blue, #1f5fd1); font-size: 15px; font-weight: 700; }
#pgc-lp2 .p2w-sample__go .p2-ico { width: 18px; height: 18px; }
@media (max-width: 1080px) { #pgc-lp2 .p2w-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #pgc-lp2 .p2w-samples { grid-template-columns: minmax(0, 1fr); } }
