/* 参加表明メーカーの画面。色と形は givecos.css（サイト共通）に合わせる。
   入力欄・投稿文など、利用者が打った字が出る所は、端末の書体（--gcm-ui）だけを使う。
   サイト共通の丸ゴシックは字ごとに分けて配る形なので、打った字に応じた取得が起きるため。 */
.gcm { --gcm-ui: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: start; gap: 30px; padding-bottom: clamp(40px, 6vw, 70px); }
.gcm [hidden] { display: none !important; }

/* 見本 */
.gcm-stage { position: sticky; top: 96px; display: grid; gap: 10px; order: 2; }
.gcm-canvas-wrap { display: grid; place-items: center; padding: 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 5px 6px 0 var(--green); }
.gcm-canvas { display: block; max-width: 100%; max-height: min(66vh, 720px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.gcm-canvas.can-grab { cursor: grab; }
.gcm-canvas.is-grab { cursor: grabbing; }
.gcm-status { min-height: 1.8em; color: var(--green-deep); font: 700 .86rem/1.7 var(--gcm-ui); }
.gcm-status.is-warn { color: #a3164f; }
.gcm-stage-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gcm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 30px; background: #fff; color: var(--ink); font: 800 .84rem/1.3 var(--round); cursor: pointer; }
.gcm-btn:hover { background: var(--mint); }
.gcm-btn:disabled { background: #e6ebe8; color: #5c6b68; cursor: default; }
.gcm-btn:focus-visible, .gcm input:focus-visible, .gcm select:focus-visible, .gcm textarea:focus-visible, .gcm-opts button:focus-visible, .gcm-swatches button:focus-visible, .gcm-tabs button:focus-visible { outline: 3px solid #264bab; outline-offset: 2px; }
.gcm-main { background: var(--green-deep); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.gcm-main:hover { background: var(--yellow); color: var(--ink); }
.gcm-main[aria-disabled="true"] { background: #e6ebe8; color: #5c6b68; box-shadow: none; }
.gcm-stage-btns .gcm-main { margin-left: auto; }
.gcm-danger { border-color: #a3164f; color: #a3164f; }
.gcm-sp { display: none; }

/* 入力 */
.gcm-panel { order: 1; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 5px 6px 0 var(--mint); overflow: hidden; }
.gcm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1.5px solid var(--ink); background: var(--mint); }
.gcm-tabs button { min-height: 50px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: 800 .9rem/1.3 var(--round); cursor: pointer; }
.gcm-tabs button:last-child { border-right: 0; }
.gcm-tabs button[aria-selected="true"] { background: var(--green-deep); color: #fff; }
.gcm-pane { display: grid; gap: 16px; padding: 22px 22px 26px; }
.gcm-f { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gcm-f > span, .gcm-f > legend { padding: 0; font: 800 .86rem/1.5 var(--round); }
.gcm-f b { margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: #ffe1ec; color: #a3164f; font-size: .68rem; vertical-align: 1px; }
.gcm input[type="text"], .gcm input[type="date"], .gcm select, .gcm textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: 500 1rem/1.6 var(--gcm-ui); }
.gcm textarea { resize: vertical; }
.gcm input[type="color"] { width: 100%; height: 46px; padding: 3px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; cursor: pointer; }
.gcm input[type="range"] { width: 100%; min-height: 34px; accent-color: var(--green-deep); }
.gcm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gcm-row4 { grid-template-columns: repeat(4, 1fr); }
.gcm-at { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; }
.gcm-at i { font: 700 1rem/1 var(--gcm-ui); color: var(--muted); }
.gcm-hint { color: var(--muted); font-size: .8rem; line-height: 1.7; }
.gcm-alert { padding: 10px 14px; border: 1.5px solid #a3164f; border-radius: 8px; background: #fff0f5; color: #7c0f3b; font: 700 .84rem/1.7 var(--gcm-ui); }
.gcm-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gcm-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.gcm-seg label { position: relative; }
.gcm-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gcm-seg span { display: grid; place-items: center; min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--ink); border-radius: 30px; background: #fff; font: 800 .84rem/1.3 var(--round); }
.gcm-seg input:checked + span { background: var(--green-deep); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.gcm-seg input:focus-visible + span { outline: 3px solid #264bab; outline-offset: 2px; }
.gcm-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.gcm-opts button { min-height: 44px; padding: 6px 15px; border: 1.5px solid var(--ink); border-radius: 30px; background: #fff; color: var(--ink); font: 800 .82rem/1.3 var(--round); cursor: pointer; }
.gcm-opts-s button { padding-inline: 12px; font-size: .78rem; }
.gcm-opts button:hover { background: var(--mint); }
.gcm-opts button[aria-pressed="true"] { background: var(--green-deep); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.gcm-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gcm-swatches button { min-height: 44px; border: 1.5px solid var(--ink); border-radius: 10px; cursor: pointer; }
.gcm-swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.gcm-more { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.gcm-more summary { min-height: 44px; padding: 10px 14px; font: 800 .84rem/1.6 var(--round); cursor: pointer; }
.gcm-more[open] { display: grid; gap: 12px; padding-bottom: 14px; }
.gcm-more[open] > :not(summary) { margin-inline: 14px; }
.gcm-fonts { display: grid; gap: 10px; }
.gcm-fonts li { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.gcm-fonts img { width: 100%; max-width: 440px; border-radius: 4px; }
.gcm-fonts span { margin-right: auto; font: 700 .78rem/1.4 var(--round); }
.gcm-fonts .gcm-btn { min-height: 40px; padding: 6px 12px; font-size: .78rem; }
.gcm-fonts .gcm-btn[aria-pressed="true"] { background: var(--green-deep); color: #fff; }
.gcm-sub { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.gcm-sub > div { display: grid; gap: 12px; }
.gcm-range { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 10px; }
.gcm-range > span { font: 700 .8rem/1.4 var(--round); }
.gcm-filerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gcm-file { position: relative; overflow: hidden; background: var(--yellow); }
.gcm-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gcm-file:focus-within { outline: 3px solid #264bab; outline-offset: 2px; }
.gcm-count { color: var(--muted); font: 700 .8rem/1 var(--gcm-ui); }
.gcm-day { display: grid; gap: 14px; padding: 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.gcm-day > div { display: grid; gap: 14px; }
.gcm-day h3 { font-size: 1.15rem; padding-left: 10px; border-left: 6px solid var(--green); letter-spacing: -.02em; }
.gcm-outfit { display: grid; gap: 10px; }
.gcm-outfit-h { font: 800 .84rem/1.4 var(--round); color: var(--green-deep); }
.gcm-photos { display: grid; gap: 10px; }
.gcm-photo { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.gcm-photo canvas { width: 88px; height: 88px; border-radius: 6px; border: 1px solid var(--line); }
.gcm-photo-ctl { display: grid; gap: 4px; min-width: 0; }
.gcm-photo .gcm-range { grid-template-columns: 5.2em 1fr; }
.gcm-photo .gcm-btn { min-height: 40px; padding: 6px 12px; font-size: .78rem; }
.gcm-photo select { width: auto; min-height: 40px; padding: 6px 10px; }
.gcm-check { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 600 .86rem/1.7 var(--gcm-ui); }
.gcm-check .ok { color: var(--green-deep); }
.gcm-check .ng { color: #a3164f; }
.gcm-reset { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.gcm-toast { position: fixed; left: 50%; bottom: 26px; z-index: 20; max-width: min(92vw, 520px); padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font: 700 .86rem/1.7 var(--gcm-ui); transform: translateX(-50%); box-shadow: 3px 4px 0 var(--green); }
.gcm-zoom { max-width: min(96vw, 1280px); max-height: 96vh; padding: 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 6px 7px 0 var(--green); }
.gcm-zoom::backdrop { background: #0f262bcc; }
.gcm-zoom img { max-width: 100%; max-height: calc(96vh - 130px); margin-inline: auto; border-radius: 4px; }
.gcm-zoom .gcm-hint { margin: 8px 0; text-align: center; }
.gcm-zoom .gcm-btn { display: flex; margin-inline: auto; }
.gcm-notes { padding-top: 0; }
.gcm-notes .dots { max-width: 820px; }

@media (max-width: 1100px) {
  .gcm { gap: 22px; }
  .gcm-pane { padding: 18px 16px 22px; }
}
@media (max-width: 900px) {
  .gcm { grid-template-columns: 1fr; gap: 16px; }
  .gcm-stage { order: 0; top: 66px; z-index: 5; margin-inline: -8px; padding: 8px 8px 6px; background: var(--paper); border-bottom: 1px solid var(--line); gap: 6px; }
  .gcm-canvas-wrap { padding: 8px; box-shadow: 3px 4px 0 var(--green); }
  .gcm-canvas { max-height: 34vh; }
  .gcm-stage.is-small .gcm-canvas { max-height: 15vh; }
  .gcm-status { min-height: 0; font-size: .78rem; }
  .gcm-stage-btns .gcm-btn { min-height: 40px; padding: 6px 12px; font-size: .76rem; }
  .gcm-pc { display: none; }
  .gcm-sp { display: inline-flex; }
  .gcm-stage-btns .gcm-sp { margin-left: auto; }
  .gcm-bar.gcm-sp { order: 3; position: sticky; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-inline: -19px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1.5px solid var(--ink); }
  .gcm-bar .gcm-btn { min-height: 46px; }
  .gcm-toast { bottom: 84px; }
}
@media (max-width: 760px) {
  body.maker-page { padding-bottom: 0; }
  .gcm-row { grid-template-columns: 1fr; }
  .gcm-row4 { grid-template-columns: repeat(2, 1fr); }
  .gcm-range { grid-template-columns: 1fr; gap: 0; }
  .gcm-photo .gcm-range { grid-template-columns: 4.6em 1fr; }
  .gcm-swatches { grid-template-columns: repeat(6, 1fr); gap: 6px; }
}
