/* Glow Mirror ページ専用（site.css と daystitch-why.css の上に乗せる） */

/* ヒーロー：パールの光の中に実際の画面 */
.gm-stage { position: relative; display: grid; place-items: center; padding: clamp(22px, 4vw, 40px) 0; border-radius: 28px;
  background: radial-gradient(ellipse at 50% 35%, #FFFFFF 0%, #F7F0E4 48%, #E6D6BB 100%); }
.gm-stage .dev-phone { width: min(250px, 62%); }
.gm-stage .float-icon { position: absolute; left: 7%; bottom: 9%; width: clamp(64px, 9vw, 92px); border-radius: 22%; box-shadow: 0 18px 40px rgba(120, 90, 40, .3); }
.gm-stage .float-tag { position: absolute; right: 6%; top: 12%; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .85);
  color: #6F5630; font-size: 13px; font-weight: 700; box-shadow: 0 8px 22px rgba(120, 90, 40, .18); backdrop-filter: blur(6px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gm-stage { background: radial-gradient(ellipse at 50% 35%, #3A332A 0%, #24201B 55%, #171512 100%); } }
:root[data-theme="dark"] .gm-stage { background: radial-gradient(ellipse at 50% 35%, #3A332A 0%, #24201B 55%, #171512 100%); }

/* 3つの数字 */
.gm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.gm-stats div { padding: 14px 12px; border-radius: 16px; background: var(--soft); text-align: center; }
.gm-stats b { display: block; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--brand); line-height: 1.2; }
.gm-stats span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .gm-stats { grid-template-columns: 1fr 1fr; } }

/* App Store の画面ギャラリー（横スクロール） */
.gm-gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
.gm-gallery figure { flex: none; width: clamp(180px, 22vw, 230px); margin: 0; scroll-snap-align: start; }
.gm-gallery img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 14px 30px -14px rgb(60 40 20 / .45); }
.gm-gallery figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ブラウザで試せる鏡 */
.gmtry-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .gmtry-wrap { grid-template-columns: 1fr; } }
.gmtry-copy h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.25; margin-top: 10px; }
.gmtry-copy > p { color: var(--muted); margin-top: 14px; }
.gmtry-side { display: grid; justify-items: center; gap: 14px; }
.gmtry .phone { width: 290px; height: 590px; }
.gmtry .screen { background: #0E0D0C; }
.gmx { --g: rgb(255 255 255 / .92); background: #0E0D0C; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Zen Kaku Gothic New", sans-serif; user-select: none; -webkit-user-select: none; }
.gmx .island { z-index: 9; }
.gx-mirror { position: absolute; inset: 0; overflow: hidden; }
.gx-mirror video, .gx-mirror img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.gx-guide { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 2; }
.gmx.guided .gx-guide { display: block; }
.gx-guide i { position: absolute; background: rgb(255 255 255 / .7); box-shadow: 0 0 2px rgb(0 0 0 / .4); }
.gx-guide .v { left: 50%; top: 10%; bottom: 10%; width: 1px; }
.gx-guide .h1 { top: 40%; left: 14%; right: 14%; height: 1px; }
.gx-guide .h2 { top: 58%; left: 20%; right: 20%; height: 1px; }
.gx-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; font-weight: 200; color: #fff; text-shadow: 0 0 16px rgb(0 0 0 / .4); pointer-events: none; z-index: 3; }
.gx-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity .6s ease-out; }
.gx-ui[hidden] { display: none; }
.gx-ui > * { pointer-events: auto; }
.gmx.dim .gx-ui { opacity: .35; }
.gx-zoom { position: absolute; top: 40px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; color: #fff;
  background: rgb(0 0 0 / .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: .5px solid rgb(255 255 255 / .25); }
.gx-zoom input { flex: 1; accent-color: #fff; height: 4px; }
.gx-zoom b { font-size: 11px; font-weight: 600; min-width: 28px; text-align: right; }
.gx-rec { position: absolute; top: 82px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgb(0 0 0 / .45); font-size: 12px; font-weight: 600; }
.gx-rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; }
.gmx.recording .gx-rec { display: flex; }
.gmx.recording .gx-shutter, .gmx.recording [data-act="hideAll"], .gmx.recording [data-act="tools"] { opacity: .35; pointer-events: none; }
.gx-row { position: absolute; left: 6px; right: 6px; bottom: 16px; display: flex; justify-content: space-around; align-items: flex-start; }
.gx-bottom .gx-row { position: static; }
.gx { display: grid; justify-items: center; gap: 4px; width: 50px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.gx .c { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgb(0 0 0 / .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .25); transition: background-color .2s, color .2s; }
.gx.on .c { background: var(--g); color: #111; box-shadow: 0 1px 4px rgb(0 0 0 / .25); }
.gx .l { font-size: 9.5px; font-weight: 500; line-height: 1.1; white-space: nowrap; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
.gx-shutter { width: 62px; height: 62px; margin-top: -6px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .85); background: rgb(255 255 255 / .22); color: #fff; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 2px 10px rgb(0 0 0 / .25); padding: 0; }
.gx-shutter:active { transform: scale(.94); }
.gx-tray { position: absolute; left: 10px; right: 10px; bottom: 96px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 0; justify-items: center; padding: 12px 4px;
  border-radius: 22px; background: rgb(0 0 0 / .32); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .2); }
.gx-tray[hidden] { display: none; }
.gx-showbtn { position: absolute; right: 16px; bottom: 18px; z-index: 4; opacity: .6; }
.gx-showbtn[hidden] { display: none; }
.gx-frozen, .gx-review { position: absolute; inset: 0; z-index: 6; background: #000; }
.gx-frozen[hidden], .gx-review[hidden] { display: none; }
.gx-frozen canvas, .gx-review video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.gx-top { position: absolute; top: 36px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.gx-bottom { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.gx-bottom.col { display: grid; gap: 10px; }
.gx-pill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: rgb(0 0 0 / .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .25); }
.gx-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--g); color: #111; display: grid; place-items: center; cursor: pointer; padding: 0 0 0 3px; box-shadow: 0 2px 10px rgb(0 0 0 / .3); }
.gx-seek { width: 100%; accent-color: #fff; }
.gx-toast { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); z-index: 8; padding: 10px 14px; border-radius: 14px; text-align: center; font-size: 12.5px; line-height: 1.5;
  background: rgb(20 18 16 / .78); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.gx-toast.on { opacity: 1; }
.gmx .gm-start { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; color: #F3ECE2; z-index: 10;
  background: radial-gradient(ellipse at 50% 40%, #3A332A, #141210 75%); }
.gmx .gm-start p { font-size: 13px; line-height: 1.7; color: #D8CDBD; margin: 0; }
.gmx .gm-start button { font: inherit; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; background: #E0C08A; color: #241E16; }
.gmx .gm-start[hidden] { display: none; }
.gm-off { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.gm-off[hidden] { display: none; }
.gmtry-hint { font-size: 12.5px; color: var(--muted); max-width: 320px; text-align: center; }

/* ツールとiPad・Mac */
.gm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; justify-items: center; }
.gm-duo .dev-phone { width: min(240px, 92%); }
.gm-ipads { display: grid; gap: 18px; }
.gm-ipads figure { margin: 0; }
.gm-ipads img { display: block; width: 100%; height: auto; border-radius: 18px; border: 8px solid #1B1917; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .5); }
.gm-ipads figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gm-ipad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .gm-ipad-row { grid-template-columns: 1fr; } }

/* よくある質問 */
.gm-faq { display: grid; gap: 10px; max-width: 760px; }
.gm-faq details { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; background: var(--surface); }
.gm-faq summary { cursor: pointer; font-weight: 700; }
.gm-faq p { color: var(--muted); margin: 10px 0 0; }
/* ライト：アプリと同じく、鏡の映像そのものを明るくする（上下の光などの飾りは出さない） */
.gx-mirror video, .gx-mirror img, .gx-frozen canvas, .gx-review video { transition: filter .3s; }
.gmx.lit .gx-mirror video, .gmx.lit .gx-mirror img, .gmx.lit .gx-frozen canvas, .gmx.lit .gx-review video { filter: brightness(1.32) contrast(1.04); }
/* 静止画の確認画面：アプリと同じく左右を同じ幅にして、▶を真ん中に */
.gx-freeze-row { justify-content: center; gap: 18px; }
.gx-freeze-row .gxslot { width: 92px; display: grid; justify-items: center; }
.gx-freeze-row .gx { width: auto; }
.gx-play { flex: none; width: 66px; height: 66px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .9); background: rgb(0 0 0 / .22); color: #fff; padding: 0 0 0 3px; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
/* 10秒動画の確認画面：4つのボタンを真ん中にそろえる */
.gx-bottom.col .gx-row { display: flex; justify-content: center; gap: 10px; }

/* ヒーロー：アプリ名を大きく */
.gm-name { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.gm-name img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.gm-name b { display: block; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; color: var(--ink); }
.gm-name small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
/* 料金の横：ダウンロード */
.gm-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .gm-buy { grid-template-columns: 1fr; } }
.gm-buy .price-card { margin: 0; }
.gm-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); }
.gm-dl h3 { font-family: var(--font-serif); font-size: 22px; }
.gm-dl p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.gm-dl .btn { margin-top: 14px; }
.gm-qr { width: 132px; height: 132px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 8px; }
.gm-qr img { width: 100%; height: auto; display: block; }
.gm-qr span { font-size: 11.5px; color: #8A7F72; line-height: 1.5; }
@media (max-width: 480px) { .gm-dl { grid-template-columns: 1fr; justify-items: start; } }
