:root{
  --ink:#2A2C3A;
  --paper:#FFFFFF;
  --paper-deep:#FFF4E8;
  --card:#FFFFFF;
  --main:#FF6F4E;
  --main-deep:#D94E2F;
  --main-soft:#FFE1D6;
  --sub:#1FA8A0;
  --sub-deep:#137A74;
  --sub-soft:#D6F3F0;
  --accent:#FFD23F;
  --accent-soft:#FFF3C4;
  --muted:#6B6F7E;
  --line:#E6E1DA;
  --display:"Hiragino Maru Gothic ProN","Zen Maru Gothic","M PLUS Rounded 1c","Rounded Mplus 1c","Yu Gothic","YuGothic","Noto Sans JP",sans-serif;
  --sans:"Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic","Noto Sans JP","Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  -webkit-text-size-adjust:100%;
}
.wrap{max-width:34rem;margin:0 auto;padding:1.5rem 1.25rem 5rem}

/* --- グローバルナビ --- */
.gnav{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.gnav-in{
  display:flex;gap:.3rem;
  max-width:34rem;margin:0 auto;padding:.55rem 1.25rem;
  overflow-x:auto;scrollbar-width:none;
}
.gnav-in::-webkit-scrollbar{display:none}
.gnav-break{display:none}
@media (max-width:600px){
  .gnav-in{flex-wrap:wrap;justify-content:center;overflow:visible;row-gap:.4rem;padding:.55rem .75rem}
  /* 上段：トップ・プロンプト集・QR、下段：1・2・3 */
  .gnav a[data-group="util"]{order:0}
  .gnav-break{display:block;flex-basis:100%;height:0;order:1}
  .gnav a:not([data-group="util"]){order:2}
}
.gnav::-webkit-scrollbar{display:none}
.gnav a{
  flex:none;display:inline-flex;align-items:center;gap:.3rem;
  font-size:.8rem;font-weight:600;line-height:1;
  color:var(--sub-deep);text-decoration:none;
  background:var(--sub-soft);border-radius:2rem;
  padding:.5rem .7rem;min-height:2.2rem;
}
.gnav a.is-current{background:var(--main);color:#fff}
.gnav-step{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.15rem;height:1.15rem;border-radius:50%;
  font-size:.7rem;font-weight:700;
  background:#fff;color:var(--sub-deep);
}
.gnav a.is-current .gnav-step{color:var(--main-deep)}

/* --- TOPページ --- */
.hero h1{font-size:2.1rem;margin-bottom:.6rem;line-height:1.3}
/* 見出しを2段構成に：上段はピル状の帯、下段は「生成AI」に黄色マーカー */
.hero-title-top{
  display:inline-flex;align-items:center;gap:.35em;
  font-size:1rem;font-weight:700;letter-spacing:.06em;
  color:var(--sub-deep);background:var(--sub-soft);
  border-radius:2rem;padding:.25rem .95rem .25rem .8rem;margin-bottom:.55rem;
}
.hero-spark{color:var(--accent);font-size:.9em;line-height:1}
.hero-title-main{display:block}
.hero-marker{
  font-style:normal;color:var(--main-deep);
  background:linear-gradient(transparent 58%,var(--accent-soft) 58%);
  border-radius:.25em;padding:0 .08em;
}
.steps{display:grid;gap:.8rem;margin:1.75rem 0 1.5rem}
.step{
  display:flex;gap:.9rem;align-items:center;
  text-decoration:none;color:var(--ink);
  background:var(--paper-deep);border:2px solid var(--main-soft);
  border-radius:1.2rem;padding:1rem 1.1rem;
}
.step-sub{background:var(--card);border-color:var(--sub-soft)}
.step-icon{
  flex:none;width:4.4rem;height:4.4rem;border-radius:50%;
  background:var(--accent-soft);color:var(--main);
  display:flex;align-items:center;justify-content:center;
}
.step-sub .step-icon{background:var(--sub-soft);color:var(--sub-deep)}
.step-icon svg{width:60%;height:60%;display:block}
.step-body p{margin:0}
.step-when{
  display:flex;align-items:center;gap:.4rem;
  font-size:.78rem;font-weight:600;color:var(--sub-deep);margin-bottom:.15rem!important;
}
.step-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.3rem;height:1.3rem;border-radius:50%;
  background:var(--sub);color:#fff;font-size:.75rem;font-weight:700;
}
.step-title{font-family:var(--display);font-size:1.15rem;font-weight:700;line-height:1.4}
.step-note{font-size:.82rem;color:var(--muted);line-height:1.6;margin-top:.2rem!important}
/* --- QRページ（投影用） --- */
body.qr-page{min-height:100vh;display:flex;flex-direction:column}
.qr-wrap{
  max-width:none;
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1.5rem;padding:2rem 1.25rem 3rem;
}
.qr-big{
  width:min(70vh,90vw,32rem);height:auto;display:block;
  background:#fff;border:2px solid var(--main-soft);border-radius:1.5rem;padding:1rem;
}
.qr-url{
  margin:0;font-family:var(--display);font-weight:700;
  font-size:clamp(1rem,2.6vw,1.8rem);color:var(--main-deep);
  text-align:center;overflow-wrap:anywhere;
}
.staff{font-size:.75rem;color:var(--muted);margin-top:1rem}
.staff a{color:var(--sub-deep)}

/* --- 見出し --- */
.eyebrow{
  font-family:var(--sans);
  font-size:.8rem;
  letter-spacing:.08em;
  color:var(--main);
  margin:0 0 .5rem;
}
h1{text-wrap:balance;
  font-family:var(--display);
  font-size:2rem;
  line-height:1.4;
  font-weight:700;
  margin:0 0 .75rem;
  letter-spacing:.01em;
}
.lede{
  color:var(--muted);
  font-size:.95rem;
  line-height:1.85;
  margin:0 0 2rem;
}
.rule{
  height:1px;
  background:var(--line);
  border:0;
  margin:2.25rem 0;
}

/* --- 設問 --- */
.q{margin:0 0 2rem}
.q-head{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.75rem}
.q-num{
  font-family:var(--display);
  font-size:.95rem;
  font-weight:700;
  color:#fff;
  background:var(--sub);
  border-radius:50%;
  width:1.7rem;height:1.7rem;
  display:inline-flex;align-items:center;justify-content:center;
  flex:none;
}
.q-text{font-size:1.05rem;font-weight:600;line-height:1.6;margin:0}
.q-note{font-size:.8rem;color:var(--muted);margin:.2rem 0 0}

.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{
  font-family:inherit;
  font-size:1rem;
  line-height:1.4;
  color:var(--ink);
  background:var(--paper-deep);
  border:1px solid var(--main-soft);
  border-radius:2rem;
  padding:.7rem 1.1rem;
  min-height:3rem;
  cursor:pointer;
}
.chip[aria-pressed="true"]{
  background:var(--main);
  border-color:var(--main);
  color:#fff;
  box-shadow:0 4px 12px rgba(255,111,78,.3);
}
.chip:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid var(--sub);
  outline-offset:2px;
}

input[type=text],textarea{
  width:100%;
  font-family:inherit;
  font-size:1rem;
  line-height:1.7;
  color:var(--ink);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:.6rem;
  padding:.8rem .9rem;
}
textarea{min-height:5.5rem;resize:vertical}
::placeholder{color:#77857C}

.opt-share{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  margin-top:.9rem;
  font-size:.9rem;
  color:var(--muted);
}
.opt-share input{width:1.2rem;height:1.2rem;margin-top:.35rem;flex:none}

/* --- ボタン --- */
.go{
  display:block;
  width:100%;
  font-family:var(--display);
  font-size:1.25rem;
  font-weight:600;
  color:#fff;
  background:var(--main);
  border:0;
  border-radius:2rem;
  box-shadow:0 6px 16px rgba(255,111,78,.3);
  padding:1.05rem 1rem;
  cursor:pointer;
}
.go[disabled]{background:#D9D5CF;cursor:default}
.go-note{text-align:center;font-size:.85rem;color:var(--muted);margin:.6rem 0 0}
.sub{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
  box-sizing:border-box;
  font-family:inherit;
  font-size:.95rem;
  color:var(--sub-deep);
  background:transparent;
  border:2px solid var(--sub-soft);
  border-radius:2rem;
  padding:.8rem 1rem;
  margin-top:.75rem;
  cursor:pointer;
}

/* --- 結果カード --- */
.result{margin-top:2rem;scroll-margin-top:4.5rem}
.q{scroll-margin-top:4.5rem}
/* スマホはナビが2段になるぶん余白を広げる（通常指定より後ろに置くこと） */
@media (max-width:600px){
  .result,.q{scroll-margin-top:7.5rem}
}
.poster{
  background:var(--card);
  border:2px solid var(--main-soft);
  border-radius:1.2rem;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(255,111,78,.16);
}
.poster-band{
  background:var(--main);
  color:#FFF1EC;
  padding:.85rem 1.25rem;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:1rem;
  font-size:.78rem;
  letter-spacing:.06em;
}
.poster-band b{font-weight:600;color:#fff;flex:none;white-space:nowrap}
.poster-band span{text-align:right}
.poster-body{padding:1.75rem 1.4rem 1.6rem;text-align:center}
.poster-icon{
  width:9.5rem;height:9.5rem;
  margin:0 auto 1rem;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--main);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 20px rgba(255,210,63,.35);
}
.poster-icon svg{width:62%;height:62%;display:block}
.poster-icon-s{width:6rem;height:6rem;margin:0 0 1rem}
.poster-kicker{font-size:.85rem;color:var(--muted);margin:0 0 .6rem}
.poster-title{
  font-family:var(--display);
  font-size:2.05rem;
  line-height:1.35;
  font-weight:700;
  color:var(--main-deep);
  margin:0 0 .75rem;
}
.poster-line{font-size:1rem;line-height:1.8;margin:0 auto;max-width:22rem}
.poster-quote{
  font-family:var(--display);
  font-size:1.2rem;
  line-height:1.8;
  margin:1.1rem auto 0;
  max-width:22rem;
  padding-top:1.1rem;
  border-top:1px solid var(--line);
}
.poster-scene{
  background:var(--accent-soft);
  margin:1.4rem -1.4rem -1.6rem;
  padding:1rem 1.4rem;
  font-size:.88rem;
  line-height:1.7;
  color:var(--ink);
  text-align:left;
}
.badges{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin-top:1.1rem}
.badge{
  font-size:.8rem;
  color:var(--sub-deep);
  background:var(--sub-soft);
  border-radius:2rem;
  padding:.3rem .8rem;
}
.badge-gold{background:var(--accent-soft);color:#7A5A00}

.copy-list{margin:1.25rem 0 0;padding:0;list-style:none}
.copy-list li{
  font-family:var(--display);
  font-size:1.3rem;
  line-height:1.7;
  background:var(--card);
  border:1px solid var(--line);
  border-left:5px solid var(--accent);
  border-radius:.6rem;
  padding:1rem 1.1rem;
  margin-bottom:.7rem;
}

.after{margin-top:1.5rem}
.after h2{font-size:1rem;margin:0 0 .4rem}
.after p{font-size:.9rem;color:var(--muted);margin:0 0 .8rem;line-height:1.8}

.toast{
  position:fixed;left:50%;bottom:1.5rem;transform:translateX(-50%);
  background:var(--sub-deep);color:#fff;
  padding:.7rem 1.2rem;border-radius:2rem;font-size:.9rem;
  box-shadow:0 6px 18px rgba(0,0,0,.2);z-index:50;
}
.notice{
  font-size:.85rem;line-height:1.7;color:var(--sub-deep);
  background:var(--sub-soft);border-radius:.5rem;
  padding:.7rem .9rem;margin-top:1rem;
}
.warn{
  font-size:.85rem;color:var(--sub-deep);
  background:var(--sub-soft);
  border:1px dashed var(--sub);border-radius:.5rem;
  padding:.7rem .9rem;margin:0 0 1.75rem;
}
.foot{
  margin-top:3rem;padding-top:1.25rem;border-top:1px solid var(--line);
  font-size:.78rem;color:var(--muted);line-height:1.8;
}
.menu{display:grid;gap:.75rem;margin-top:1.5rem}
.menu a{
  display:block;text-decoration:none;color:var(--ink);
  background:var(--paper-deep);border:1px solid var(--main-soft);border-radius:1rem;
  padding:1rem 1.1rem;
}
.menu b{display:block;font-family:var(--display);font-size:1.15rem;font-weight:600}
.menu span{font-size:.85rem;color:var(--muted)}
.hide{display:none!important}

/* --- 壁（投影） --- */
body.wall{background:var(--paper);color:var(--ink)}
.wall-wrap{max-width:none;padding:1.5rem 2rem 2rem}
.wall-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:1.25rem}
.wall-head h1{font-size:2.2rem;color:var(--ink);margin:0}
.wall-head p{margin:.25rem 0 0;color:var(--muted);font-size:.95rem}
.wall-count{font-family:var(--display);font-size:2.6rem;font-weight:700;color:var(--main);line-height:1}
.wall-count span{font-size:.9rem;font-family:var(--sans);font-weight:400;color:var(--muted);margin-left:.4rem}
.bars{display:grid;gap:.5rem;margin-bottom:1.5rem}
.bar{display:grid;grid-template-columns:11rem 1fr auto;align-items:center;gap:.9rem;font-size:1rem}
.bar-track{background:var(--paper-deep);border-radius:2rem;height:1.6rem;overflow:hidden}
.bar-fill{background:var(--main);height:100%;border-radius:2rem;transition:width .5s ease}
.wall-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:.9rem}
.note{
  display:flex;gap:.8rem;align-items:flex-start;
  background:var(--card);color:var(--ink);
  border:2px solid var(--main-soft);
  border-radius:1rem;padding:.9rem 1rem;
  box-shadow:0 8px 20px rgba(255,111,78,.12);
}
.note-icon{
  flex:none;width:3.4rem;height:3.4rem;border-radius:50%;
  background:var(--accent-soft);color:var(--main);
  display:flex;align-items:center;justify-content:center;
}
.note-icon svg{width:62%;height:62%;display:block}
.note-name{font-size:.78rem;color:var(--main-deep);font-weight:600;margin:0 0 .25rem}
.note-title{font-family:var(--display);font-size:1.2rem;font-weight:700;line-height:1.5;margin:0}
.note-body{font-size:.9rem;line-height:1.7;margin:.4rem 0 0;color:var(--muted)}
.wall-empty{color:var(--muted);font-size:1.05rem;margin-top:3rem;text-align:center}
.wall-foot{margin-top:1.5rem;color:var(--muted);font-size:.8rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.wall-nav{display:flex;gap:.4rem}
.wall-nav a{color:var(--sub-deep);text-decoration:none;background:var(--sub-soft);border-radius:2rem;padding:.25rem .7rem}
.wall-nav a.is-current{background:var(--main);color:#fff}

/* 壁：スマホ表示 */
@media (max-width:600px){
  .wall-wrap{padding:1rem 1rem 2rem}
  .wall-head{gap:1rem;margin-bottom:1rem}
  .wall-head h1{font-size:1.45rem}
  .wall-head p{font-size:.82rem}
  .wall-count{font-size:2rem}
  .bar{grid-template-columns:7.5rem 1fr auto;gap:.6rem;font-size:.85rem}
  .bar-track{height:1.2rem}
  .wall-grid{grid-template-columns:1fr;gap:.7rem}
  .wall-foot{flex-direction:column;align-items:flex-start;gap:.6rem}
  .wall-nav{flex-wrap:wrap}
}
@media (max-width:420px){
  h1{font-size:1.7rem}
  .poster-title{font-size:1.75rem}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* --- プロンプト集 --- */
.p-sec{margin:2.5rem 0 0}
.p-sec > h2{
  font-family:var(--display);font-size:1.35rem;font-weight:600;
  margin:0 0 .3rem;padding-bottom:.5rem;border-bottom:3px solid var(--accent);
}
.p-sec > p{font-size:.88rem;color:var(--muted);margin:.5rem 0 1.25rem;line-height:1.8}
.p-item{
  background:var(--card);border:1px solid var(--line);
  border-radius:.5rem;padding:1.1rem 1.1rem .9rem;margin-bottom:1rem;
}
.p-when{display:flex;align-items:baseline;gap:.5rem;margin:0 0 .6rem}
.p-when span{font-family:var(--display);color:var(--main);font-size:1rem;flex:none}
.p-when b{font-size:1rem;font-weight:600}
.p-text{
  font-family:var(--display);font-size:1.1rem;line-height:1.85;
  white-space:pre-wrap;margin:0 0 .8rem;
  background:var(--paper-deep);border-radius:.4rem;padding:.9rem 1rem;
}
.p-mark{color:var(--main-deep);font-style:normal;font-weight:600;border-bottom:2px dotted var(--main)}
.p-tip{font-size:.85rem;color:var(--muted);line-height:1.8;margin:.7rem 0 0}
.p-copy{
  font-family:inherit;font-size:.95rem;color:#fff;background:var(--sub);
  border:0;border-radius:2rem;padding:.7rem 1.1rem;min-height:2.9rem;cursor:pointer;
}
.p-copy.done{background:var(--sub-deep)}
.p-steps{margin:0;padding-left:1.3rem;font-size:.95rem;line-height:1.9}
.p-steps li{margin-bottom:.4rem}
