/* 利用者側スタイル
 * 方針: お年寄りも使うため、大きな文字・大きなボタン・迷わない一本道の動線を最優先にする。
 * 基本の文字は22px（鶴屋紙業「こえニュース」と同じ）。配色はこえニュースの利用者画面に合わせた紫系（:root のトークン）。
 * 季節ごとのアクセント色は --accent（テーマ）で差し替える。 */

:root {
	/* 配色は鶴屋紙業「こえニュース」の利用者画面（assets/css/style.css の :root）に合わせた寒色系（紫）。
	   トークン名もこえニュースと同じ。色を変えるときはここだけを直す */
	--bg-color: #ffffff;
	--card-bg: #ffffff;
	--card-hover-bg: #f7f5fc;
	--primary-color: #4c1d95;
	--primary-hover: #3b1670;
	--text-main: #111111;
	--text-sub: #6b6b6c;
	--input-bg: #f7f7f8;
	--border-color: #d5d5d5;
	--highlight-color: rgba(76, 29, 149, 0.15);
	--action-card-bg: #f8f4fc;
	--action-card-border: #a58dd5;
	--greeting-sun: #fb9f1e;
	/* こえニュースの文字サイズ切替ボタンの配色（淡い紫の地・紫の文字） */
	--tint-bg: #f5f0ff;
	--tint-border: #d8b4fe;
	--tint-text: #5b21b6;
	/* 入力欄・選択肢の枠線（こえニュースは地色のみだが、お年寄りに見やすいよう枠を残す） */
	--field-border: #8a8a8e;
	/* 状態の色（確認ずみ・確認中・エラー） */
	--green: #0f7a52;
	--ok: #0f7a52;
	--ok-bg: #e5f5ee;
	--warn-bg: #fff4d9;
	--warn: #8a5a00;
	--err: #b3261e;
	--err-bg: #fdecea;
	/* --accent は body の style 属性（季節テーマ）で上書きされる。季節ごとの強調（応募口数・撮影ボタン）に使う */
	--accent: #d7262a;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg-color);
	color: var(--text-main);
	font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
	font-size: 22px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}
body.fs-large { font-size: 25px; }
body.fs-xlarge { font-size: 28px; }

p { margin: 0 0 0.5em; }
.pre-line { white-space: pre-line; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- テストモード中の帯（全画面の最上部） ---------- */
.test-band { background: #b3001b; color: #fff; text-align: center; font-weight: 900; font-size: 0.95em; letter-spacing: 0.08em; padding: 6px 12px; line-height: 1.4; }

/* ---------- ヘッダー ---------- */
.site-header { position: relative; color: #fff; overflow: hidden; background: var(--primary-color); }
.site-header__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.site-header__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(59, 22, 112, 0.82) 0%, rgba(59, 22, 112, 0.45) 60%, rgba(59, 22, 112, 0.1) 100%); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; padding: 18px 80px 18px 20px; }
.site-header__logo { width: 96px; height: auto; flex-shrink: 0; background: #fff; border-radius: 50%; padding: 6px; }
.site-header__lead { margin: 0; font-size: 0.8em; font-weight: 700; color: var(--greeting-sun); letter-spacing: 0.04em; }
.site-header__title { margin: 0; font-size: 1.55em; font-weight: 900; line-height: 1.25; }
.site-header__subtitle { display: block; font-size: 0.56em; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.site-header--compact .site-header__inner { padding: 10px 80px 10px 20px; }
.site-header--compact .site-header__logo { width: 64px; }
.site-header--compact .site-header__title { font-size: 1.15em; }

.page-main { max-width: 640px; padding: 22px 18px 32px; }
.page-title { font-size: 1.25em; font-weight: 900; margin: 4px 0 16px; padding-left: 12px; border-left: 8px solid var(--accent); }

/* ---------- パネル・フォーム ---------- */
.panel { background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 14px; padding: 22px 20px 26px; }
.panel__copy { font-size: 1.15em; font-weight: 900; color: var(--primary-hover); margin-bottom: 2px; }
.panel__title { font-size: 1.25em; font-weight: 900; margin: 0 0 8px; }
.panel__sub { color: var(--text-main); margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
fieldset.stack { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { font-weight: 700; font-size: 1em; margin: 0; padding: 0; }
.field { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--field-border); border-radius: 12px; padding: 0 14px; }
.field:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--highlight-color); }
.field__icon { font-size: 1.3em; color: var(--primary-color); }
.field__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 16px 0; color: var(--text-main); }
.field__input:focus { outline: none; }
.field__input:disabled { color: #9a9a9e; -webkit-text-fill-color: #9a9a9e; }
.field__input--code { letter-spacing: 0.25em; font-weight: 700; }
.field__select { width: 100%; font: inherit; padding: 14px 12px; border: 2px solid var(--field-border); border-radius: 12px; background: #fff; color: var(--text-main); }
.field__select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--highlight-color); }
input.field__select { line-height: 1.55; } /* 文字入力欄の高さを選択欄にそろえる */
.choice-row { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--field-border); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; }
.choice input { width: 28px; height: 28px; accent-color: var(--primary-color); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--primary-color); background: var(--tint-bg); }
.divider { border: 0; border-top: 2px dotted var(--border-color); margin: 24px 0; opacity: 1; }
.help-text { font-size: 0.8em; color: var(--text-sub); margin: 4px 0 0; }

/* ---------- ボタン ---------- */
.btn-big { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 68px; padding: 14px 20px; border: 3px solid transparent; border-radius: 14px; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.3; }
.btn-big i { font-size: 1.35em; }
.btn-big--primary { background: var(--primary-color); color: #fff; }
.btn-big--primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.btn-big--accent { background: var(--accent); color: #fff; }
.btn-big--accent:hover:not(:disabled) { filter: brightness(0.9); color: #fff; }
.btn-big--outline { background: #fff; color: var(--primary-hover); border-color: var(--primary-color); }
.btn-big--outline:hover:not(:disabled) { background: var(--tint-bg); color: var(--primary-hover); }
.btn-big--line { background: #06c755; color: #fff; }
.btn-big--line:hover { background: #05a847; color: #fff; }
.btn-big--tall { min-height: 92px; font-size: 1.2em; }
.btn-big:disabled { background: #c9c9cc; color: #fff; border-color: transparent; cursor: not-allowed; }
.btn-big:focus-visible, .link-button:focus-visible { outline: 4px solid var(--primary-color); outline-offset: 2px; }
#Upload-Form { display: flex; flex-direction: column; gap: 14px; }
.link-button { background: none; border: 0; color: var(--primary-hover); font: inherit; text-decoration: underline; padding: 10px 0; cursor: pointer; }

/* ---------- 案内メッセージ ---------- */
.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-weight: 700; border: 2px solid transparent; }
.notice p { margin: 0; }
.notice--ok { background: var(--ok-bg); color: var(--ok); border-color: #9fd6bd; }
.notice--warn { background: var(--warn-bg); color: var(--warn); border-color: #f0cf84; }
.notice--error { background: var(--err-bg); color: var(--err); border-color: #f0a9a3; }
.notice[hidden] { display: none; }

/* ---------- ホーム: 応募状況 ---------- */
.status { background: var(--card-bg); border: 2px solid var(--border-color); border-left: 10px solid var(--accent); border-radius: 14px; padding: 18px 18px 14px; margin-bottom: 20px; }
.status__label { margin: 0; font-weight: 700; color: var(--text-sub); }
.status__count { margin: 0; line-height: 1.1; }
.status__num { font-size: 3.6em; font-weight: 900; color: var(--accent); }
.status__unit { font-size: 1.4em; font-weight: 900; margin-left: 6px; }
.status__next { font-weight: 700; margin: 6px 0 4px; }
.status__next strong { color: var(--accent); font-size: 1.1em; }
.status__rest { font-size: 0.8em; color: var(--text-sub); }
.status__list { margin: 14px 0 6px; border-top: 2px dotted var(--border-color); }
.status__list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ececec; }
.status__list dt { font-weight: 500; font-size: 0.85em; }
.status__list dd { margin: 0; font-weight: 900; white-space: nowrap; }
.send { margin-bottom: 22px; }
.send .help-text { margin-top: 10px; text-align: center; }
/* 撮影ボタン: こえニュースの「新聞をとる」カード（.action-card）に倣う。淡い地・2pxの枠・角丸20px・影なし・大きなアイコンと太い見出しを中央に積む。色は季節テーマの --accent */
.capture-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 340px; min-height: 200px; margin: 0 auto 6px; padding: 24px 12px; background: color-mix(in srgb, var(--accent) 7%, #fff); border: 2px solid var(--accent); border-radius: 20px; box-shadow: none; color: var(--accent); font: inherit; text-align: center; cursor: pointer; }
.capture-card:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 13%, #fff); }
.capture-card__icon { font-size: 88px; line-height: 1; margin-bottom: 14px; }
.capture-card__title { font-size: 1.75em; font-weight: 900; line-height: 1.2; }
.capture-card:disabled { background: #efefef; border-color: #c9c9cc; color: #9a9a9e; cursor: not-allowed; }
.capture-card:focus-visible { outline: 4px solid var(--primary-color); outline-offset: 2px; }
.info-card { background: var(--action-card-bg); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; font-size: 0.85em; }
.info-card p { margin-bottom: 0.3em; }
.info-card__title { font-weight: 900; font-size: 1.1em; }

/* ---------- 受付完了 ---------- */
.done { text-align: left; padding: 8px 4px 22px; }
.done__icon { font-size: 3.4em; color: var(--green); line-height: 1; }
.done__title { font-size: 1.5em; font-weight: 900; margin: 6px 0 10px; }
.done__text { margin-bottom: 4px; }
.done__text strong { color: var(--accent); font-size: 1.2em; }

/* ---------- レシート一覧 ---------- */
.receipt-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.receipt-item { display: flex; gap: 14px; background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 12px; padding: 12px; }
.receipt-item__thumb { width: 84px; height: 112px; object-fit: cover; border-radius: 8px; background: #ececec; flex-shrink: 0; }
.receipt-item__body { min-width: 0; font-size: 0.8em; }
.receipt-item__date { color: var(--text-sub); margin-bottom: 2px; }
.receipt-item__detail { font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.badge-status { display: inline-block; padding: 2px 14px; border-radius: 999px; font-weight: 900; }
.badge-status--ok { background: var(--ok-bg); color: var(--ok); }
.badge-status--wait { background: var(--warn-bg); color: var(--warn); }
.badge-status--ng { background: #ececec; color: var(--text-sub); }

/* ---------- つかいかた ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.steps__item { counter-increment: step; position: relative; background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 12px; padding: 14px 16px 12px 68px; }
.steps__item::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-color); color: #fff; font-weight: 900; text-align: center; line-height: 40px; }
.steps__title { font-weight: 900; margin-bottom: 2px; }
.steps__item p:last-child { margin-bottom: 0; font-size: 0.85em; }


/* ---------- 設定ボタン（ヘッダー右上）とメニュー（モーダル） ---------- */
.settings-btn { position: absolute; top: 10px; right: 12px; z-index: 2; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5em; padding: 0; cursor: pointer; line-height: 1; }
.settings-btn:hover { background: var(--primary-hover); }
.settings-btn:focus-visible, .menu-close:focus-visible, .menu-link:focus-visible, .size-btn:focus-visible { outline: 4px solid var(--greeting-sun); outline-offset: 2px; }
body.menu-open { overflow: hidden; }
.menu-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(17, 17, 17, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.menu-overlay[hidden] { display: none; }
.menu-dialog { background: var(--card-bg); border-radius: 18px; width: 100%; max-width: 600px; max-height: 100%; overflow-y: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.menu-head { position: sticky; top: 0; background: var(--card-bg); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 12px; border-bottom: 2px solid var(--border-color); }
.menu-title { margin: 0; font-size: 1.15em; font-weight: 900; }
.menu-close { min-width: 56px; min-height: 56px; border: 2px solid var(--primary-color); border-radius: 14px; background: #fff; color: var(--primary-hover); font: inherit; font-size: 0.8em; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 10px; line-height: 1.2; }
.menu-body { padding: 8px 18px 22px; }
.menu-section { padding: 14px 0; border-bottom: 2px dotted var(--border-color); }
.menu-section:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-section__title { font-size: 0.85em; font-weight: 900; color: var(--text-sub); margin: 0 0 8px; }
.menu-event__name { font-weight: 900; font-size: 1.05em; margin-bottom: 6px; }
.menu-event__list { margin: 0; }
.menu-event__list div { padding: 8px 0; border-top: 1px solid #ececec; }
.menu-event__list dt { font-weight: 900; font-size: 0.85em; }
.menu-event__list dd { margin: 0; font-size: 0.85em; }
.menu-mine { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.menu-mine__num { font-size: 2em; font-weight: 900; color: var(--accent); line-height: 1.2; }
.menu-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.menu-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 16px; border: 2px solid var(--primary-color); border-radius: 14px; background: #fff; color: var(--primary-hover); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: left; }
.menu-link:hover { background: var(--tint-bg); color: var(--primary-hover); }
.menu-link i { font-size: 1.3em; }
.menu-link--logout { border-color: var(--field-border); color: var(--text-main); }
.size-switch { display: flex; gap: 8px; }
.size-btn { flex: 1; min-height: 60px; padding: 8px 6px; font: inherit; font-size: 0.85em; font-weight: 700; border: 2px solid var(--tint-border); background: var(--tint-bg); color: var(--tint-text); border-radius: 30px; cursor: pointer; }
.size-btn.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* ---------- ホーム: イベント名・戻るリンク ---------- */
.status__event { margin: 0 0 6px; font-weight: 900; font-size: 1.05em; color: var(--primary-hover); }
.back-home { margin-top: 22px; }

/* ---------- アプリ内ブラウザ（LINE等）の案内 ---------- */
/* アプリ内ブラウザ（LINE等）で開いたときの全画面案内。下のページは操作できない */
body.inapp-locked { overflow: hidden; }
.inapp-full { position: fixed; inset: 0; z-index: 3000; background: var(--card-bg); overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px 20px; }
.inapp-full[hidden] { display: none; }
.inapp-full__inner { display: flex; flex-direction: column; align-items: stretch; max-width: 480px; margin: auto; text-align: center; line-height: 1.5; }
.inapp-full__icon { font-size: 3.2em; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.inapp-full__title { margin: 0 0 14px; font-weight: 900; font-size: 1.7em; color: var(--primary-hover); word-break: auto-phrase; text-wrap: balance; }
.inapp-full__text { margin: 0 0 24px; font-size: 1.05em; font-weight: 700; white-space: pre-line; }
.inapp-full__link { margin: 0; }
.inapp-full__link[hidden], .inapp-full__steps[hidden] { display: none; }
.inapp-full__btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; padding: 14px 20px; border-radius: 16px; background: var(--primary-color); color: #fff; font-weight: 900; font-size: 1.2em; text-decoration: none; line-height: 1.3; }
.inapp-full__btn:hover, .inapp-full__btn:focus { background: var(--primary-hover); color: #fff; }
.inapp-full__btn:focus-visible { outline: 4px solid var(--greeting-sun); outline-offset: 3px; }
.inapp-full__btn i { font-size: 1.3em; }
.inapp-full__copy { margin: 16px 0 0; display: flex; flex-direction: column; }
.inapp-full__btn--sub { border: 3px solid var(--primary-color); background: #fff; color: var(--primary-hover); font-family: inherit; cursor: pointer; min-height: 64px; }
.inapp-full__btn--sub:hover, .inapp-full__btn--sub:focus { background: var(--action-card-bg); color: var(--primary-hover); }
.inapp-full__copied { margin: 14px 0 0; font-weight: 900; white-space: pre-line; color: var(--primary-hover); }
.inapp-full__copied[hidden], .inapp-full__url[hidden] { display: none; }
.inapp-full__url { margin: 12px 0 0; padding: 10px; border: 2px solid var(--action-card-border); border-radius: 10px; font: inherit; font-size: 0.95em; word-break: break-all; resize: none; background: #fff; }
.inapp-full__steps { margin: 16px 0 0; padding: 16px; border: 3px solid var(--action-card-border); border-radius: 14px; background: var(--action-card-bg); font-weight: 700; white-space: pre-line; }

/* ---------- 画面内カメラ（こえニュースの camera-overlay を踏襲。ガイド枠だけ縦長のレシート向け） ---------- */
body.camera-open { overflow: hidden; }
.camera-overlay { position: fixed; inset: 0; z-index: 2000; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.camera-overlay[hidden] { display: none; }
.camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.camera-guide { position: absolute; top: 12%; bottom: 30%; left: 16%; right: 16%; pointer-events: none; }
.camera-guide-corner { position: absolute; width: 44px; height: 44px; border: 0 solid #fff; filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)); }
.camera-guide-tl { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; border-top-left-radius: 10px; }
.camera-guide-tr { top: 0; right: 0; border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 10px; }
.camera-guide-bl { bottom: 0; left: 0; border-bottom-width: 5px; border-left-width: 5px; border-bottom-left-radius: 10px; }
.camera-guide-br { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; border-bottom-right-radius: 10px; }
.camera-message { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 16px; right: 16px; margin: 0; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.4; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); white-space: pre-line; text-wrap: balance; pointer-events: none; }
.camera-tools { position: absolute; right: 12px; top: 38%; display: flex; flex-direction: column; gap: 14px; }
.camera-tool-btn { width: 76px; min-height: 76px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 16px; background: rgba(0, 0, 0, 0.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 16px; font-weight: 700; padding: 6px 4px; }
.camera-tool-btn[hidden] { display: none; }
.camera-tool-btn i { font-size: 28px; line-height: 1; }
.camera-tool-btn[aria-pressed="true"] { background: #ffd43b; border-color: #ffd43b; color: #111; }
.camera-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.camera-native-link { background: none; border: 0; color: #fff; font-size: 18px; text-decoration: underline; padding: 8px 12px; }
.camera-actions { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; }
.camera-actions-spacer { width: 112px; }
.camera-cancel-btn { width: 112px; min-height: 60px; border: 2px solid #fff; border-radius: 30px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px; font-weight: 700; }
.camera-shutter-btn { width: 92px; height: 92px; border-radius: 50%; border: 6px solid #fff; background: #fff; box-shadow: inset 0 0 0 5px #000; padding: 0; }
.camera-shutter-btn:active { background: #ddd; }
.camera-shutter-btn:disabled, .camera-cancel-btn:disabled { opacity: 0.5; }
.camera-shutter-label { margin: 0; font-size: 20px; font-weight: 700; }
.camera-overlay.camera-overlay-notice .camera-guide,
.camera-overlay.camera-overlay-notice .camera-tools,
.camera-overlay.camera-overlay-notice .camera-shutter-btn,
.camera-overlay.camera-overlay-notice .camera-shutter-label,
.camera-overlay.camera-overlay-notice .camera-actions-spacer { display: none; }
.camera-overlay.camera-overlay-notice .camera-message,
.camera-overlay.camera-overlay-help .camera-message { top: 38%; }
.camera-overlay.camera-overlay-notice .camera-native-link,
.camera-overlay.camera-overlay-help .camera-native-link { background: #fff; color: var(--primary-color); text-decoration: none; font-size: 24px; font-weight: 700; border-radius: 14px; padding: 18px 28px; }
.camera-perm { position: absolute; top: 26%; bottom: 170px; left: 16px; right: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; overflow-y: auto; }
.camera-perm[hidden], .camera-perm-help[hidden] { display: none; }
.camera-perm-btn { background: #ffd43b; color: #111; border: 0; border-radius: 14px; font-size: 24px; font-weight: 700; padding: 18px 28px; display: inline-flex; align-items: center; gap: 10px; }
.camera-perm-help { margin: 0; font-size: 18px; line-height: 1.6; text-align: left; white-space: pre-line; background: rgba(0, 0, 0, 0.65); border-radius: 12px; padding: 12px 16px; }
.camera-overlay.camera-overlay-perm .camera-message { top: calc(env(safe-area-inset-top, 0px) + 16px); }
.camera-overlay.camera-overlay-perm .camera-native-link { font-size: 20px; padding: 12px 22px; }
@media (max-height: 520px) {
	.camera-guide { top: 14%; bottom: 36%; }
	.camera-tools { top: 20%; }
}

/* イベント名（季節名）は、文節の途中で折り返さない */
.status__event, .menu-event__name { word-break: auto-phrase; text-wrap: balance; }
@media (max-width: 480px) {
	.site-header__logo { width: 80px; }
	.site-header__inner { gap: 12px; padding-right: 74px; }
	.site-header__lead { font-size: 0.68em; }
	.site-header--compact .site-header__logo { width: 56px; }
	.site-header--compact .site-header__inner { padding-right: 74px; }
	.settings-btn { right: 10px; width: 54px; height: 54px; }
}

/* 送ったレシート: 画像の拡大表示 */
.receipt-item__zoom { border: 0; padding: 0; background: none; flex-shrink: 0; cursor: zoom-in; border-radius: 8px; position: relative; display: block; }
.receipt-item__zoom:focus-visible { outline: 4px solid var(--greeting-sun); outline-offset: 2px; }
.receipt-item__zoom-icon { position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(17, 17, 17, 0.65); color: #fff; font-size: 0.8em; display: flex; align-items: center; justify-content: center; }
.receipt-zoom { position: fixed; inset: 0; z-index: 1600; background: rgba(17, 17, 17, 0.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.receipt-zoom[hidden] { display: none; }
.receipt-zoom__img { display: block; max-width: calc(100vw - 24px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 8px; background: #fff; }
.receipt-zoom__close { min-width: 56px; min-height: 56px; border: 2px solid var(--primary-color); border-radius: 14px; background: #fff; color: var(--primary-hover); font: inherit; font-size: 0.9em; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 22px; }
.receipt-zoom__close:focus-visible { outline: 4px solid var(--greeting-sun); outline-offset: 2px; }

/* ---------- 希望の賞品（第1〜第3希望） ---------- */
.pref-lead { margin: 0; font-weight: 700; color: var(--primary-hover); }
.pref-label { color: var(--primary-hover); }
.pref-card { border-left-color: var(--primary-color); }
.pref-list { list-style: none; margin: 8px 0 10px; padding: 0; border-top: 2px dotted var(--border-color); }
.pref-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid #ececec; }
.pref-list__no { flex: 0 0 5.2em; font-weight: 900; color: var(--primary-hover); }
.pref-list__name { flex: 1 1 10em; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.pref-list__name--empty { color: var(--err); }
.pref-alert { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; border-width: 3px; }
.pref-alert__title { font-size: 1.15em; font-weight: 900; }
.pref-alert__text { font-weight: 700; }
.pref-alert .btn-big { margin-top: 2px; }
.pref-change { margin-top: 12px; }
.pref-alert__title, .pref-alert__text { text-wrap: balance; word-break: auto-phrase; }
