@font-face {
  font-family: "07TetsubinGothic";
  src: url("fonts/07tetsubin-gothic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "LHako Num";
  src: url("fonts/lhako-num.woff2") format("woff2");
  font-weight: 100 900;
  unicode-range: U+30-39;
  font-display: swap;
}
:root {
  --font: "LHako Num", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  --head: "LHako Num", "07TetsubinGothic", "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --ink: #0b2a9c;
  --glass: rgba(6, 20, 80, .4);
  --line: rgba(255, 255, 255, .22);
  --fill: rgba(0, 0, 0, .2);
  --ok: #b9ff9f; --warn: #ffd37a; --danger: #d70015;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: #0b3fa6 url("img/lhako/bg.webp") 68% 0 / cover no-repeat; min-height: 100%; }
body { margin: 0; color: #fff; font: 500 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.lh { max-width: 560px; margin: 0 auto; padding: max(40px, env(safe-area-inset-top)) 20px max(48px, env(safe-area-inset-bottom)); }

.lh-hero { padding: 24px 0 8px; text-align: center; }
.lh-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.lh-title { margin: 0 auto; width: min(100%, 420px); line-height: 0; }
.lh-title img { display: block; width: 100%; height: auto; }
.lh-tagline { margin: 14px 0 0; font: 400 clamp(19px, 5.4vw, 28px)/1.3 var(--head); text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.lh-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.lh-acts li { padding: 6px 14px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; font-weight: 700; }
.lh-lead { max-width: 34em; margin: 20px auto 0; padding: 16px 18px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(.9); backdrop-filter: blur(18px) saturate(.9); font-size: 15px; font-weight: 500; line-height: 1.8; text-align: left; white-space: pre-line; }

.lh-sub { margin: 0 0 8px 4px; font: 400 24px/1.3 var(--head); letter-spacing: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.lh-mine { margin-top: 28px; }
.lh-mine-list, .lh-list { margin: 0; padding: 0; list-style: none; border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(.9); backdrop-filter: blur(18px) saturate(.9); overflow: hidden; }
.lh-mine-row, .lh-row { border-top: 1px solid var(--line); }
.lh-mine-row:first-child, .lh-row:first-child { border-top: 0; }
.lh-mine-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.lh-mine-info { display: grid; min-width: 0; }
.lh-mine-row b { font-size: 17px; font-weight: 700; }
.lh-mine-row small { color: rgba(255, 255, 255, .8); font-size: 14px; overflow-wrap: anywhere; }
.lh-mine-row.is-done { opacity: .6; }
.lh-x { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 14px; font-weight: 700; }
.lh-x.is-ask { background: var(--danger); }

.lh-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 28px 0 14px; padding: 3px; border-radius: 16px; background: var(--fill); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lh-tab { display: grid; justify-items: center; min-height: 52px; padding: 6px; border: 0; border-radius: 13px; background: transparent; color: #fff; font-size: 15px; font-weight: 700; transition: background .2s, color .2s; }
.lh-tab small { color: inherit; opacity: .8; font-size: 12px; font-weight: 500; }
.lh-tab[aria-selected="true"] { background: #fff; color: var(--ink); }

.lh-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; }
.lh-time { display: grid; line-height: 1.1; }
.lh-time b { font: 400 28px/1.05 var(--head); letter-spacing: .01em; }
.lh-time span { color: rgba(255, 255, 255, .8); font-size: 13px; }
.lh-info { min-width: 0; }
.lh-seats { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; }
.lh-seats i { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .35; }
.lh-seats i.is-free { background: var(--ok); opacity: 1; }
.lh-seats em { margin-left: 4px; font-style: normal; color: rgba(255, 255, 255, .85); }
.lh-seats em[data-left="1"] { color: var(--warn); font-weight: 700; }
.lh-row.is-full .lh-time b { opacity: .6; }
.lh-go { min-height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 900; transition: opacity .15s, transform .1s; }
.lh-go:active:not(:disabled) { transform: scale(.96); opacity: .85; }
.lh-go:disabled { background: transparent; color: rgba(255, 255, 255, .75); font-weight: 500; cursor: default; padding: 0 4px; }
.lh-empty { padding: 28px 16px; color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }

.lh-form { grid-column: 1 / -1; display: grid; gap: 16px; padding: 16px; border-radius: 18px; background: var(--fill); }
.lh-row > .lh-form { margin: 4px -4px 4px; }
.lh-form-title { margin: 0; font-size: 17px; font-weight: 700; }
.lh-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lh-field > span, .lh-field > legend { padding: 0; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; }
.lh-field input { height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: #10163a; font-size: 17px; min-width: 0; }
.lh-field input:focus { outline: 3px solid #fff; outline-offset: 2px; }
.lh-count { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); }
.lh-radio { position: relative; }
.lh-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lh-radio span { display: grid; place-items: center; min-width: 64px; min-height: 40px; padding: 0 14px; border-radius: 9px; font-size: 15px; font-weight: 700; }
.lh-radio input:checked + span { background: #fff; color: var(--ink); }
.lh-radio input:focus-visible + span { outline: 3px solid #fff; outline-offset: 1px; }
.lh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lh-btn { min-height: 50px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 900; }
.lh-btn:disabled { opacity: .5; }
.lh-btn-ghost { background: rgba(255, 255, 255, .2); color: #fff; font-weight: 700; }

.lh-msg { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 10; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 20px; border-radius: 16px; background: rgba(20, 24, 60, .94); color: #fff; font-size: 15px; font-weight: 700; text-align: center; translate: -50% 0; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.lh-msg:empty { display: none; }
.lh-msg[data-kind="warn"] { background: rgba(215, 0, 21, .94); }

.lh-foot { margin-top: 40px; text-align: center; font-size: 13px; }
.lh-foot a { color: #fff; opacity: .85; text-decoration: none; }
.lh-foot a:hover { text-decoration: underline; }

@property --sway { syntax: "<angle>"; inherits: false; initial-value: 135deg; }
@property --hx { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --hy { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes lh-sway {
  0%, 100% { --sway: 120deg; --hx: 15%; --hy: 0%; }
  50% { --sway: 300deg; --hx: 85%; --hy: 45%; }
}

.lh-mine-list, .lh-list, .lh-tabs, .lh-acts li, .lh-form, .lh-x, .lh-go:not(:disabled), .lh-btn, .lh-btn-ghost, .lh-count, .lh-tab[aria-selected="true"], .lh-radio input:checked + span {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -12px 18px -12px rgba(255, 255, 255, .22), inset 0 0 18px rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 40, .22);
  -webkit-backdrop-filter: blur(10px) saturate(1.5) brightness(1.06);
  backdrop-filter: blur(10px) saturate(1.5) brightness(1.06);
  animation: lh-sway 10s ease-in-out infinite;
}
.lh-mine-list, .lh-list, .lh-tabs, .lh-form { background: rgba(8, 24, 96, .44); }
.lh-count { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 -10px 14px -12px rgba(255, 255, 255, .15); animation: none; }
.lh-go:not(:disabled), .lh-btn, .lh-tab[aria-selected="true"], .lh-radio input:checked + span { background: rgba(255, 255, 255, .36); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 40, .35); }
.lh-btn-ghost, .lh-x, .lh-acts li { background: rgba(255, 255, 255, .14); color: #fff; }
.lh-x.is-ask { background: rgba(215, 0, 21, .75); }
.lh-tab[aria-selected="true"] small { opacity: .9; }

.lh-mine-list::before, .lh-list::before, .lh-tabs::before, .lh-acts li::before, .lh-form::before, .lh-x::before, .lh-go:not(:disabled)::before, .lh-btn::before, .lh-btn-ghost::before, .lh-tab[aria-selected="true"]::before, .lh-radio input:checked + span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(var(--sway), rgba(255, 255, 255, .95), rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, .06) 68%, rgba(255, 255, 255, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lh-mine-list::after, .lh-list::after, .lh-tabs::after, .lh-acts li::after, .lh-form::after, .lh-x::after, .lh-go:not(:disabled)::after, .lh-btn::after, .lh-btn-ghost::after, .lh-tab[aria-selected="true"]::after, .lh-radio input:checked + span::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 120% at var(--hx) var(--hy), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: soft-light;
}
.lh-list > li, .lh-mine-list > li { position: relative; z-index: 1; }
.lh-go:not(:disabled):active, .lh-btn:active { background: rgba(255, 255, 255, .4); }

@supports (backdrop-filter: url(#lh-refract)) {
  .lh-mine-list, .lh-list, .lh-tabs, .lh-form, .lh-go:not(:disabled), .lh-btn, .lh-tab[aria-selected="true"] {
    backdrop-filter: url(#lh-refract) blur(8px) saturate(1.5) brightness(1.06);
  }
}

.lh-x-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.lh-had { display: inline-flex; align-items: center; gap: 10px; }
.lh-had b { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lh-had i { font-style: normal; }
.lh-ask { flex: 1 1 100%; display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(215, 0, 21, .22); border: 1px solid rgba(255, 140, 150, .55); }
.lh-ask p { margin: 0; font-size: 16px; font-weight: 700; }
.lh-ask small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; }
.lh-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lh-x-no, .lh-x-yes { min-height: 48px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 900; }
.lh-x-no { background: rgba(255, 255, 255, .24); color: #fff; }
.lh-x-yes { background: #d70015; color: #fff; }
.lh-x-yes:active, .lh-x-no:active { opacity: .8; }
.lh-mine-row.is-asking { background: rgba(215, 0, 21, .08); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }
