/* ============================================================
   Chuhaco 共通CSS（本番）
   確定デザイン（design/v4）の組み合わせを焼き込んだもの。
   ボタン=茶／区切り=フリル／VTUBER・フッター=クリーム／飾り=多め（.more は常に表示）。切り替えの仕組みは持たない。
   トークン → リセット → 部品（見出し・ボタン・チップ・受付状況・ヘッダー・メニュー・区切り・ご依頼の帯・フッター）
   → 飾り → 動き → スプラッシュ・補助。
   TOP・GALLERY 専用の CSS は各ページの css/ に置く。
   ============================================================ */

/* ---------- トークン ---------- */
:root {
  /* 指定色 */
  --sky: #a2d8f2;
  --cream: #fffdf2;
  --brown: #69625a;
  /* 派生 */
  --sky-deep: #6cbce3;
  --sky-soft: #cfeaf8;
  --sky-pale: #eaf6fc;
  --sky-mist: #f5fbfe;
  --egg: #ffe9a8;
  --egg-soft: #fff4cf;
  --ink: #4a443d;
  --ink-soft: #7a7268;
  --white: #fff;
  --gray: #f1efec;
  --line: rgba(108, 188, 227, .5);
  --line-soft: rgba(108, 188, 227, .28);
  /* 書体 */
  --f-en: "Fredoka", "M PLUS Rounded 1c", sans-serif;
  --f-ja: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  /* 寸法 */
  --maxw: 1120px;
  --gutter: 24px;
  --hd-h: 66px;
  --sh-card: 0 14px 34px -20px rgba(108, 188, 227, .7);
  --sh-float: 0 22px 48px -24px rgba(105, 98, 90, .35);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  /* ボタン（茶） */
  --cta-bg: var(--brown);
  --cta-fg: var(--cream);
  --cta-sh: 0 10px 24px -12px rgba(105, 98, 90, .6);
  --cta-line: transparent;
  /* 色の面 */
  --vt-bg: var(--cream);
  --vt-dot: var(--sky-soft);
  --cband-bg: var(--sky-pale);
  --ft-bg: var(--cream);
  /* モチーフ（assets/img/motif/ の PNG。mask で色を付けて使う） */
  --mo-kira: url("../assets/img/motif/kira.png");
  --mo-flower: url("../assets/img/motif/flower.png");
  --mo-heart: url("../assets/img/motif/heart.png");
  --mo-star: url("../assets/img/motif/star.png");
  --mo-ribbon: url("../assets/img/motif/ribbon.png");
  --mo-b: url("../assets/img/motif/b.png");
  /* テープ（B案: 半透明で平ら） */
  --tape-a: rgba(162, 216, 242, .62);
  --tape-b: rgba(255, 233, 168, .78);
}
/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--f-ja); font-weight: 500; font-size: 16px; line-height: 1.9;
  color: var(--ink); background: var(--white);
  overflow-x: hidden; overflow-wrap: anywhere; line-break: strict;
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt";
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-soft); color: var(--ink); }
[hidden] { display: none !important; }
/* 画像保護（管理画面 body.admin の中は除く） */
body:not(.admin) img { user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }

.en { font-family: var(--f-en); }
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.vh, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main { position: relative; }
section { position: relative; }

@media (max-width: 767px) {
  :root { --gutter: 16px; --hd-h: 58px; }
  body { font-size: 15px; }
}

/* ---------- 見出し ---------- */
.sec-head { position: relative; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head .en { font-family: var(--f-en); font-weight: 600; font-size: 40px; letter-spacing: .04em; line-height: 1; color: var(--brown); }
.sec-head .ja { font-size: 13px; letter-spacing: .18em; color: var(--ink-soft); }
.sec-head .mo-i { align-self: center; }
@media (max-width: 767px) {
  .sec-head { gap: 10px; margin-bottom: 18px; }
  .sec-head .en { font-size: 30px; }
  .sec-head .ja { font-size: 12px; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-ja); font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease-pop), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cta-bg); color: var(--cta-fg); box-shadow: var(--cta-sh), inset 0 0 0 1px var(--cta-line); }
.btn-ghost { background: var(--white); color: var(--brown); box-shadow: inset 0 0 0 2px var(--sky); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sky), var(--sh-card); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn-contact {
  min-height: 42px; padding: 0 22px;
  font-family: var(--f-en); font-weight: 600; font-size: 15px; letter-spacing: .1em;
  background: var(--cta-bg); color: var(--cta-fg); box-shadow: var(--cta-sh), inset 0 0 0 1px var(--cta-line);
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: 14px; color: var(--brown); letter-spacing: .04em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- チップ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 15px; border-radius: 999px;
  background: var(--white); color: var(--brown); box-shadow: inset 0 0 0 1.5px var(--sky-soft);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease-pop);
}
a.chip:hover { box-shadow: inset 0 0 0 1.5px var(--sky); transform: translateY(-2px); }
.chip.is-on { background: var(--sky); color: var(--ink); box-shadow: none; }

/* ---------- 受付状況 ---------- */
.st-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 13px 0 11px; border-radius: 999px;
  background: var(--sky-soft); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.st-badge .sym { font-size: 15px; color: var(--brown); }
.st-lead { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.5; }
.months { display: flex; gap: 8px; }
.month {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 58px; border-radius: 14px; flex: none;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: 12px; line-height: 1.2; color: var(--brown); font-weight: 700;
}
.month b { font-family: var(--f-en); font-size: 20px; margin-top: 2px; font-weight: 600; color: var(--brown); }
.month.m-o { background: var(--sky-soft); box-shadow: none; }
.month.m-tri, .month.m-corp { background: var(--egg-soft); box-shadow: none; }
.month.m-x { background: var(--gray); box-shadow: none; }
.month.m-x b { color: var(--ink-soft); }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd-h); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hd-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--brown); flex: none; }
.logo img { width: 38px; height: 38px; }
.logo .word { font-family: var(--f-en); font-weight: 600; font-size: 25px; letter-spacing: .03em; line-height: 1; }
.nav { margin-left: auto; display: flex; gap: 2px; }
/* メニュー: C案のように、項目の前にキラキラ。いまのページは水色の地に白い文字と白い花（依頼者の希望 10-15） */
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  font-family: var(--f-en); font-weight: 600; font-size: 15px; letter-spacing: .07em; color: var(--brown); line-height: 1.3;
  transition: background .2s;
}
.nav a::before {
  content: ""; flex: none; width: 13px; height: 13px; background: var(--sky-deep);
  -webkit-mask: var(--mo-kira) center / contain no-repeat; mask: var(--mo-kira) center / contain no-repeat;
  transition: transform .45s var(--ease-pop);
}
.nav a:hover { background: var(--sky-pale); }
.nav a:hover::before { transform: rotate(45deg) scale(1.2); }
.nav a.is-current { background: var(--sky); color: var(--white); }
.nav a.is-current::before { width: 14px; height: 14px; background: var(--white); -webkit-mask-image: var(--mo-flower); mask-image: var(--mo-flower); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
@media (max-width: 1080px) {
  .nav a { padding: 7px 9px; font-size: 14px; letter-spacing: .05em; }
}
@media (max-width: 899px) {
  .hd-in { gap: 10px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hd .btn-contact { min-height: 34px; padding: 0 14px; font-size: 12px; margin-left: auto; }
  .logo img { width: 32px; height: 32px; }
  .logo .word { font-size: 21px; }
}

/* ---------- メニュー（スマホ・全画面） ---------- */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--white); display: none; overflow-y: auto; }
.mnav.is-open { display: block; }
.mnav-in { padding-bottom: 40px; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); }
.mnav-list { margin-top: 10px; }
.mnav-list a {
  display: flex; align-items: center; gap: 12px; padding: 15px 4px;
  font-family: var(--f-en); font-weight: 600; font-size: 23px; letter-spacing: .1em; color: var(--brown);
  border-bottom: 2px dotted var(--sky);
}
.mnav-list a::before {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--sky-deep);
  -webkit-mask: var(--mo-kira) center / contain no-repeat; mask: var(--mo-kira) center / contain no-repeat;
}
.mnav-list a.is-current { color: var(--ink); }
.mnav-list a.is-current::before { width: 18px; height: 18px; background: var(--brown); -webkit-mask-image: var(--mo-flower); mask-image: var(--mo-flower); }
.mnav-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 26px; }
.mnav-close { width: 42px; height: 42px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-size: 22px; color: var(--ink); line-height: 1; }
body.nav-open { overflow: hidden; }

/* ---------- 区切り（色の変わる所だけ） ----------
   .sep を付けた要素の上辺に、その要素の地の色（--sep-bg）でフリルを出す。 */
.sep { position: relative; }
.sep::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  background: var(--sep-bg, var(--white));
}
.sep::before, .frill::before {
  top: -17px; height: 18px;
  -webkit-mask: radial-gradient(circle at 18px 18px, #000 17.6px, transparent 18.2px) 0 0 / 36px 18px repeat-x;
  mask: radial-gradient(circle at 18px 18px, #000 17.6px, transparent 18.2px) 0 0 / 36px 18px repeat-x;
}
@media (max-width: 767px) {
  .sep::before, .frill::before {
    top: -13px; height: 14px;
    -webkit-mask: radial-gradient(circle at 14px 14px, #000 13.6px, transparent 14.2px) 0 0 / 28px 14px repeat-x;
    mask: radial-gradient(circle at 14px 14px, #000 13.6px, transparent 14.2px) 0 0 / 28px 14px repeat-x;
  }
}

/* ---------- ご依頼・ご相談の帯（A案） ---------- */
.cband { --sep-bg: var(--cband-bg); --cb-ico: 26px; background: var(--cband-bg); padding: 54px 0; }
.cband-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; }
/* 見出しは PICK UP・VTUBER の見出し（英字 40px／30px）と同じ高さに見える大きさ（依頼者の希望 10-15） */
.cband h2 { font-size: 34px; font-weight: 700; letter-spacing: .04em; color: var(--brown); line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.cband .st { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cband .st .st-lead { font-size: 15px; }
.cband-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cband .mail { font-family: var(--f-en); font-size: 14px; letter-spacing: .03em; color: var(--ink-soft); }
@media (max-width: 899px) {
  .cband { padding: 40px 0; }
  .cband-in { grid-template-columns: 1fr; gap: 18px; }
  .cband .months { overflow-x: auto; padding-bottom: 4px; }
  .cband-act { align-items: flex-start; }
  .cband-act .btn { width: 100%; }
}
@media (max-width: 767px) {
  .cband { --cb-ico: 20px; }
  .cband h2 { font-size: 26px; }
}

/* ---------- フッター（B案のクリーム／A案の白） ---------- */
.ft { --sep-bg: var(--ft-bg); background: var(--ft-bg); padding: 40px 0 28px; }
.ft-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ft .logo img { width: 32px; height: 32px; }
.ft .logo .word { font-size: 22px; }
.nav-ft { display: flex; gap: 20px; margin-left: auto; font-family: var(--f-en); font-weight: 600; font-size: 14px; letter-spacing: .1em; color: var(--brown); flex-wrap: wrap; }
.sns { display: flex; gap: 8px; }
.sns a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--sky); color: var(--brown); font-family: var(--f-en); font-weight: 600; font-size: 14px; transition: background .2s, transform .25s var(--ease-pop); }
.sns a:hover { background: var(--sky-soft); transform: scale(1.08); }
.sns svg { width: 15px; height: 15px; fill: currentColor; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.ft-bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .ft { padding: 30px 0 24px; }
  .ft-in { gap: 14px; }
  .nav-ft { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 22px; font-size: 13px; order: 3; }
  .sns { margin-left: auto; }
}

/* ---------- 飾り ---------- */
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco ~ * { position: relative; z-index: 1; }
/* .more は飾り多めの印（常に表示。クラスは見本と同じに残す） */
/* モチーフ（依頼者の素材を mask で色付け） */
.mo {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--s, 14px); height: var(--s, 14px);
  background: var(--c, var(--sky)); opacity: var(--o, 1); transform: rotate(var(--r, 0deg));
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  pointer-events: none;
}
/* 文字の横に置くとき */
.mo-i { position: relative; left: auto; top: auto; display: inline-block; flex: none; vertical-align: middle; }
.mo-kira { --m: var(--mo-kira); }
.mo-flower { --m: var(--mo-flower); }
.mo-heart { --m: var(--mo-heart); }
.mo-star { --m: var(--mo-star); }
.mo-ribbon { --m: var(--mo-ribbon); }
.mo-b { --m: var(--mo-b); }
/* 雲（A案） */
.cloud { position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 320px); height: var(--h, 140px); border-radius: 50%; background: var(--sky-soft); filter: blur(34px); opacity: var(--o, .6); }
/* 流れ星（頭のキラキラが右下へ流れる） */
.shoot {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--len, 170px); height: 2px; border-radius: 2px;
  transform: rotate(var(--r, 26deg)); transform-origin: right center;
  background: linear-gradient(90deg, transparent, var(--sky-deep)); opacity: var(--o, .9);
}
.shoot::after {
  content: ""; position: absolute; right: -9px; top: -8px; width: 18px; height: 18px; background: var(--egg);
  -webkit-mask: var(--mo-kira) center / contain no-repeat; mask: var(--mo-kira) center / contain no-repeat;
}
/* マスキングテープ（B案） */
.tape {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 84px); height: var(--h, 19px); z-index: 3;
  background: var(--tape, var(--tape-a)); transform: rotate(var(--r, -4deg));
  box-shadow: inset 0 0 0 1px rgba(108, 188, 227, .35), 0 1px 2px rgba(74, 68, 61, .1);
  pointer-events: none;
}
/* 水玉（D案） */
.dots {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 420px); height: var(--h, 420px);
  background-image: radial-gradient(circle, var(--vt-dot) 0 5px, transparent 5.5px);
  background-size: 34px 34px; opacity: var(--o, .85);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
/* やわらかい形（D案） */
.blob {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 240px); height: var(--h, 220px);
  background: var(--c, #fff); opacity: var(--o, .45);
  border-radius: 62% 38% 54% 46% / 48% 56% 44% 52%;
}

/* ---------- 動き ----------
   「動きを減らす」設定では全部止める（末尾の規則）。止めたときは、動き終わった形か代表の1コマを見せる。 */
.twinkle { animation: twinkle var(--t, 3.6s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle {
  0%, 100% { opacity: calc(var(--o, 1) * .35); transform: scale(.7) rotate(var(--r, 0deg)); }
  50% { opacity: var(--o, 1); transform: scale(1) rotate(var(--r, 0deg)); }
}
.shoot { opacity: 0; animation: shoot var(--every, 13s) linear var(--delay, 1.5s) infinite; }
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--r, 26deg)); }
  2% { opacity: var(--o, .9); }
  8% { opacity: var(--o, .9); }
  11% { opacity: 0; transform: translate(calc(var(--len, 170px) * 1.6), calc(var(--len, 170px) * .78)) rotate(var(--r, 26deg)); }
  100% { opacity: 0; transform: translate(calc(var(--len, 170px) * 1.6), calc(var(--len, 170px) * .78)) rotate(var(--r, 26deg)); }
}
.blob { animation: blob var(--t, 14s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes blob {
  from { border-radius: 62% 38% 54% 46% / 48% 56% 44% 52%; transform: translate(0, 0) rotate(0deg); }
  to { border-radius: 42% 58% 40% 60% / 58% 42% 60% 42%; transform: translate(10px, -14px) rotate(6deg); }
}
.drift { animation: drift var(--t, 26s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes drift { to { transform: translateX(60px); } }
/* 花びら（トップ画像に降ってくる花。数と速さは js/common.js の CH.petals） */
.petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background-color: var(--c);
  -webkit-mask: var(--mo-flower) center / contain no-repeat; mask: var(--mo-flower) center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(74, 68, 61, .25));
  transform: rotate(var(--r0));
}
.petal { animation: petal var(--t) linear var(--d) infinite; }
@keyframes petal {
  from { transform: translate(0, calc(-1 * var(--y) - 60px)) rotate(0deg); }
  to { transform: translate(var(--dx), calc(var(--fall, 700px) - var(--y))) rotate(var(--rot)); }
}
/* ---------- 受付状況: 全部の月を出すとき（CH.status.fill の opts.full）は折り返す ---------- */
.months.is-full { flex-wrap: wrap; }

/* ---------- 補助 ---------- */
.pre { white-space: pre-line; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 11px 20px; border-radius: 999px; background: var(--brown); color: var(--cream);
  font-weight: 700; font-size: 14px; line-height: 1.2;
}
.skip-link:focus { top: 10px; }
/* メッセージだけのページ（404・準備中など） */
.page-msg { padding: 88px 0 96px; text-align: center; }
.page-msg h1 { font-size: 28px; font-weight: 700; letter-spacing: .04em; color: var(--brown); line-height: 1.4; }
.page-msg p { margin: 16px 0 28px; color: var(--ink-soft); }
@media (max-width: 767px) {
  .page-msg { padding: 60px 0 68px; }
  .page-msg h1 { font-size: 22px; }
}

/* ---------- スプラッシュ ----------
   head の inline スニペットが html に splash-on を付けたときだけ出る（初回のみ）。消すのは js/common.js */
.splash { display: none; }
html.splash-on { overflow: hidden; }
html.splash-on .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400;
  background: var(--cream); animation: sp-in .3s ease both;
}
.splash img { width: min(34vw, 170px); height: auto; animation: sp-pop .7s var(--ease-pop) .1s both; }
.splash.is-out { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
@keyframes sp-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-pop { from { opacity: 0; transform: scale(.8) translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .shoot { display: none; }
}
