:root {
  --navy: #19235f;
  --ink: #111d4c;
  --muted: #5f6880;
  --line: #e2e4ea;
  --paper: #faf9f7;
  --blue: #343c92;
  --blue-soft: #e9eaff;
  --red: #bc2938;
  --err-bg: #fdecee;
  --card: #fff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(ellipse at 12% 88%, rgb(231 224 211 / 24%), transparent 38%),
    var(--paper);
  color: var(--ink);
  font: 16px/1.55 "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
}

button, input { font: inherit; }

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.card {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(380px, 1.18fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgb(17 29 76 / 9%);
}

.side {
  min-height: 500px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px;
  background: var(--navy);
  color: #fff;
}

.side::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 58%;
  background: url("/operator/seigaiha.webp") center bottom / cover no-repeat;
  opacity: .32;
  mask-image: linear-gradient(transparent, #000 42%);
}

.side::after {
  content: "おもてなし";
  position: absolute;
  right: 18px;
  bottom: 28px;
  color: rgb(255 255 255 / 15%);
  font-size: 13px;
  letter-spacing: .28em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font: 700 23px Georgia, serif;
}

.side h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.4; }
.side p { margin: 0; color: #d5d9ef; font-size: 14px; }
.side ul { margin: auto 0 20px; padding: 0; list-style: none; display: grid; gap: 12px; }
.side li { color: #eef0fa; font-size: 14px; }
.side li::before { content: "●"; margin-right: 10px; color: #b7bdf2; font-size: 10px; }

.main { padding: 38px 42px 30px; }

.top { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
h1 { margin: 0; font-size: 27px; line-height: 1.35; }

.lang {
  min-width: 76px;
  min-height: 38px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

label { display: block; margin: 17px 0 7px; font-size: 13px; font-weight: 700; }

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #ccd1de;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid #e9a33d;
  outline-offset: 2px;
}

input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); outline: 0; }
.pw { position: relative; }
.pw input { padding-right: 78px; }

.show {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary:hover { background: #29327e; }
.primary:disabled { opacity: .6; cursor: progress; }
.ghost { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.error { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--err-bg); color: var(--red); font-size: 14px; }
.hello { margin: 0 0 4px; }
.links { display: grid; gap: 8px; margin-top: 16px; }
.links a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.links a:hover { border-color: #777dcc; background: var(--blue-soft); }
.foot { margin: 24px 0 0; color: var(--muted); font-size: 12px; }

html[lang="ja"] [data-en], html[lang="en"] [data-ja] { display: none; }

@media (max-width: 700px) {
  .wrap { padding: 16px; }
  .card { max-width: 480px; grid-template-columns: 1fr; }
  .side { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 20px; }
  .side::after { right: 20px; bottom: 17px; font-size: 10px; }
  .mark { width: 42px; height: 42px; flex: 0 0 auto; font-size: 20px; }
  .side h2 { font-size: 18px; }
  .side p, .side ul { display: none; }
  .main { padding: 26px 22px 22px; }
}

html[data-product="guide"] [data-restaurant],html:not([data-product="guide"]) [data-guide]{display:none!important}
