/* 陂・ｊ 蝟ｶ讌ｭ繝代・繝医リ繝ｼ・・026-12-04・峨り牡縺ｯ陂・ｊ縺ｮ邏ｺ縺ｨ驥托ｼ郁ｪｬ譏取嶌繝ｻ蜷榊絢縺ｨ蜷後§・峨ょ､懈・縺代・蜈峨′繧・▲縺上ｊ蟾ｮ縺呵レ譎ｯ縲・*/
:root {
  --navy: #0b1a3a; --navy-2: #12285a; --deep: #060e22;
  --gold: #c9a54a; --gold-2: #e9cf87; --gold-3: #fff3c4; --dawn: #ff9a5a; --teal: #4fd1c5; --blue: #5aa9ff; --red: #ff6b6b; --green: #5fe0a0;
  --ink: #eef1f8; --sub: #a9b3c8; --line: rgba(233, 207, 135, .22); --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .09);
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--deep); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
/* ---- 閭梧勹・夂ｴｺ縺ｮ遨ｺ縺ｫ螟懈・縺代・蜈会ｼ郁・繧奇ｼ・---- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 115%, #3a2a3a 0%, #142554 38%, var(--navy) 62%, var(--deep) 100%); }
.sky .dawn { position: absolute; left: 50%; bottom: -42vh; width: 140vmax; height: 70vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 190, 110, .42), rgba(255, 154, 90, .16) 45%, transparent 72%); animation: breathe 9s ease-in-out infinite; }
.sky .ray { position: absolute; left: 50%; bottom: -10vh; width: 2px; height: 120vh; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 231, 166, .28), transparent 70%); filter: blur(1px); }
.sky .r1 { transform: rotate(-24deg); animation: sway 14s ease-in-out infinite; }
.sky .r2 { transform: rotate(19deg); animation: sway 17s ease-in-out infinite reverse; opacity: .7; }
.sky .dust { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff3c4 50%, transparent 51%), radial-gradient(1px 1px at 72% 14%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 40% 64%, #e9cf87 50%, transparent 51%), radial-gradient(1px 1px at 86% 48%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 24% 82%, #fff3c4 50%, transparent 51%), radial-gradient(1px 1px at 58% 36%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes breathe { 50% { opacity: .75; transform: translateX(-50%) scale(1.06); } }
@keyframes sway { 50% { transform: rotate(var(--to, 0deg)) translateX(6vw); } }
@keyframes twinkle { to { opacity: .2; } }

/* ---- 荳翫・蟶ｯ ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px);
  padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(to bottom, rgba(6, 14, 34, .92), rgba(6, 14, 34, .7)); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top-logo { height: 30px; width: auto; }
.top-title { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.top-title b { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: .08em; background: linear-gradient(180deg, var(--gold-3), var(--gold) 70%, #8a6220); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-title span { font-size: 13px; letter-spacing: .22em; color: var(--gold-2); }
.top-title em { font-style: normal; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--gold); border-radius: 99px; font-size: 11px; color: var(--gold-3); }
body.has-hero .top { display: none; }

.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
body[data-app="honbu"] .wrap { max-width: 1040px; }

/* ---- 繧ｫ繝ｼ繝・---- */
.card { position: relative; background: linear-gradient(160deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; margin: 0 0 16px;
  box-shadow: 0 1px 0 rgba(255, 243, 196, .08) inset, 0 18px 40px -22px rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
h1, h2 { font-family: var(--serif); font-weight: 900; line-height: 1.4; margin: 0 0 10px; letter-spacing: .04em; }
h1 { font-size: 24px; } h2 { font-size: 19px; color: var(--gold-2); }
.lead { color: var(--sub); font-size: 15px; margin: 4px 0 14px; }
.small { font-size: 13px; color: var(--sub); }
.gold { color: var(--gold-2); }

/* ---- 縺ｯ縺倥ａ縺ｮ逕ｻ髱｢ ---- */
.hero { text-align: center; padding: 8vh 6px 20px; }
.hero .logo-big { width: min(300px, 78vw); filter: drop-shadow(0 6px 26px rgba(233, 207, 135, .35)); animation: rise 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.hero .yomi { font-family: var(--serif); font-weight: 900; font-size: clamp(64px, 22vw, 112px); line-height: 1.05; margin: 18px 0 0; letter-spacing: .06em;
  background: linear-gradient(180deg, #fffbe6 0%, var(--gold-2) 45%, var(--gold) 70%, #8a6220 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 190, 110, .35)); animation: rise 1.6s .2s cubic-bezier(.2, .8, .2, 1) both; position: relative; }
.hero .en { font-family: var(--serif); letter-spacing: .5em; text-indent: .5em; color: var(--gold-2); font-size: 13px; margin: 2px 0 6px; animation: rise 1.6s .35s both; }
.hero .role { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; letter-spacing: .32em; text-indent: .32em; color: var(--ink); margin: 8px 0 34px; animation: rise 1.6s .5s both; }
.hero .role::before, .hero .role::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero .role::after { transform: scaleX(-1); }
.hero .btns { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; animation: rise 1.6s .7s both; }
.hero .foot { margin-top: 34px; font-size: 12px; color: var(--sub); letter-spacing: .1em; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---- 繝懊ち繝ｳ ---- */
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: 14px 18px; min-height: 52px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.primary { position: relative; overflow: hidden; color: #2a1d05; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(180deg, #fff1c0 0%, var(--gold-2) 30%, var(--gold) 75%, #a9802f 100%); box-shadow: 0 10px 24px -10px rgba(233, 207, 135, .7), 0 1px 0 #fff8dd inset; }
.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.second { color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.ghost { background: transparent; color: var(--gold-2); border: 1px dashed var(--line); }
.danger { color: #fff; background: linear-gradient(180deg, #ff7a7a, #c73b3b); }
button:active { transform: translateY(1px) scale(.995); }
button:disabled { opacity: .5; cursor: default; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.back { width: auto; min-height: 40px; padding: 8px 14px; margin: 0 0 12px; background: rgba(255, 255, 255, .06); color: var(--gold-2); border: 1px solid var(--line); font-size: 15px; }

/* ---- 蜈･蜉・---- */
label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 15px; }
label .req { margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--gold); color: #2a1d05; vertical-align: 2px; }
label .opt { margin-left: 6px; font-size: 11px; color: var(--sub); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: rgba(4, 10, 26, .55); border: 1px solid rgba(233, 207, 135, .3); border-radius: 12px; padding: 13px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
input.pin { font-size: 30px; letter-spacing: .6em; text-align: center; font-family: ui-monospace, monospace; }
input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--gold); flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(233, 207, 135, .08); border: 1px solid var(--line); font-weight: 700; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { width: auto; min-height: 42px; padding: 8px 14px; border-radius: 99px; font-size: 15px; background: rgba(255, 255, 255, .05); color: var(--ink); border: 1px solid var(--line); }
.chip.on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05; font-weight: 800; border-color: transparent; }
.error { color: #ffd2d2; background: rgba(255, 90, 90, .14); border: 1px solid rgba(255, 107, 107, .5); padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.ok-box { color: #d8ffe9; background: rgba(95, 224, 160, .12); border: 1px solid rgba(95, 224, 160, .45); padding: 12px 14px; border-radius: 12px; }
.rules { margin: 10px 0 0; padding: 0 0 0 1.3em; font-size: 15px; }
.rules li { margin: 6px 0; }
.photo-prev { display: block; max-width: 100%; max-height: 220px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); }

/* ---- 繝帙・繝 ---- */
.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 2px 0 14px; }
.greet h1 { margin: 0; font-size: 22px; }
.greet .area { font-size: 13px; color: var(--gold-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.today { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; margin-bottom: 16px; border: 1px solid rgba(255, 231, 166, .45);
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 190, 110, .22), transparent 55%), linear-gradient(150deg, #1a3170, #0d1d45); box-shadow: 0 20px 44px -24px rgba(255, 170, 90, .55); }
.today .lbl { font-size: 13px; letter-spacing: .2em; color: var(--gold-2); }
.today .num { font-family: var(--serif); font-weight: 900; font-size: 54px; line-height: 1; margin: 6px 0 2px; color: var(--gold-3); text-shadow: 0 0 22px rgba(255, 210, 120, .55); }
.today .num small { font-size: 18px; margin-left: 4px; color: var(--gold-2); }
.today .next { margin-top: 10px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.stat { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold-3); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--sub); letter-spacing: .06em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { flex-direction: column; min-height: 112px; padding: 14px 10px; border-radius: 18px; text-align: center; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.35;
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid var(--line); transition: transform .15s; }
.tile .ic { font-size: 30px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.tile.hot { grid-column: 1 / -1; min-height: 76px; flex-direction: row; font-size: 18px; color: #2a1d05; background: linear-gradient(180deg, #fff1c0, var(--gold-2) 35%, var(--gold) 85%); border: 0; box-shadow: 0 14px 30px -14px rgba(233, 207, 135, .8); position: relative; overflow: hidden; }
.tile.hot::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); animation: shine 4.5s 1s ease-in-out infinite; }
.tile .badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--dawn); color: #fff; font-size: 12px; margin-left: 4px; }
.soon { font-size: 11px; color: var(--sub); font-weight: 400; }
.logout { margin-top: 22px; }

/* ---- 繧｢繝昴・荳隕ｧ ---- */
.day { margin: 18px 0 8px; font-family: var(--serif); font-weight: 700; color: var(--gold-2); display: flex; align-items: center; gap: 10px; }
.day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.day.is-today { color: var(--gold-3); }
.ap { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; text-align: left; justify-content: stretch; padding: 12px 14px; margin: 0 0 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.ap .tm { font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800; color: var(--gold-3); text-align: center; border-right: 1px solid var(--line); padding-right: 8px; }
.ap .nm { font-weight: 800; line-height: 1.3; }
.ap .sb { font-size: 13px; color: var(--sub); }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid var(--line); color: var(--sub); }
.pill.p-yotei { color: var(--blue); border-color: rgba(90, 169, 255, .5); }
.pill.p-lead { color: #2a1d05; background: var(--gold-2); border-color: transparent; font-weight: 800; }
.pill.p-ng { color: var(--red); border-color: rgba(255, 107, 107, .5); }
.pill.p-again { color: var(--dawn); border-color: rgba(255, 154, 90, .5); }
.pill.p-met { color: var(--green); border-color: rgba(95, 224, 160, .5); }
.pill.p-wait { color: var(--dawn); border-color: rgba(255, 154, 90, .6); }
.pill.p-done { color: var(--green); border-color: rgba(95, 224, 160, .6); }
.empty { text-align: center; color: var(--sub); padding: 26px 10px; border: 1px dashed var(--line); border-radius: 16px; }
.kv { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 12px; font-size: 15px; margin: 6px 0 10px; }
.kv dt { color: var(--sub); } .kv dd { margin: 0; word-break: break-all; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results .r-lead { grid-column: 1 / -1; }
.log { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.log li { padding: 6px 0; border-top: 1px solid rgba(233, 207, 135, .12); }

/* ---- 騾ｲ縺ｿ蜈ｷ蜷茨ｼ育筏縺苓ｾｼ縺ｿ 竊・蜿嶺ｻ假ｼ・---- */
.lead-card { padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 10px; }
.steps { display: flex; gap: 6px; margin-top: 10px; }
.steps i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.steps i.on { background: linear-gradient(90deg, var(--gold), var(--gold-3)); box-shadow: 0 0 10px rgba(255, 210, 120, .6); }
.steps-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); margin-top: 4px; }

/* ---- 遯難ｼ医・繝・・繧｢繝・・・峨→闃ｱ轣ｫ ---- */
.pop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 7, 18, .72); backdrop-filter: blur(4px); animation: fade .25s both; }
.pop .card { width: min(520px, 100%); max-height: 90vh; overflow: auto; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.fire { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 49; pointer-events: none; }
.member { text-align: center; }
.member .mark { font-size: 54px; margin: 0; }
.member h1 { font-size: 26px; background: linear-gradient(180deg, #fffbe6, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member p { font-size: 17px; }
.member strong { font-family: var(--serif); font-size: 22px; color: var(--gold-3); }

/* ---- 譛ｬ驛ｨ ---- */
.hq-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; }
.hq-tabs button { width: auto; white-space: nowrap; min-height: 44px; }
.hq-tabs .on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05; font-weight: 800; border-color: transparent; }
.hq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.p-row { padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 10px; }
.p-row .hd { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.p-row .nm { font-weight: 800; font-size: 18px; }
.p-row .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.p-row .acts button { width: auto; min-height: 42px; padding: 8px 14px; font-size: 15px; }
.idphoto { max-width: 100%; max-height: 260px; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
.notice { padding: 10px 12px; border-radius: 12px; margin-bottom: 6px; background: var(--glass); border: 1px solid var(--line); font-size: 15px; }
.notice.new { border-color: var(--dawn); box-shadow: 0 0 0 1px rgba(255, 154, 90, .35) inset; }

@media (max-width: 560px) {
  .hq-grid { grid-template-columns: repeat(2, 1fr); }
  .top-title b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.lead-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile.wide { grid-column: 1 / -1; min-height: 76px; flex-direction: row; }
.mt { margin-top: 22px; }
.card .ghost { margin-top: 12px; }

/* 螂醍ｴ・・逹驥代・豁ｩ蜷茨ｼ域悽驛ｨ縺縺代・2026-12-04・・*/
.contract { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(233, 207, 135, .45); background: rgba(201, 165, 74, .08); }
.contract .nm { font-size: 16px; }
.contract .kv, .p-row.total .kv, .p-row .kv.money { grid-template-columns: 7.5em 1fr; }
.contract .acts, .pop .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contract .acts button, .pop .acts button { width: auto; min-height: 42px; padding: 8px 14px; font-size: 15px; }
.warn { color: var(--red); }
.month-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.month-bar input { width: auto; flex: 1 1 160px; }
.month-bar button { width: auto; min-height: 44px; padding: 8px 16px; }
.month-bar .on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05; font-weight: 800; border-color: transparent; }
.p-row.total { border-color: rgba(233, 207, 135, .6); box-shadow: 0 0 18px rgba(233, 207, 135, .15); }
