:root {
  font-family:
    system-ui,
    -apple-system,
    'Noto Sans JP',
    sans-serif;
  color: #213a31;
  background: #f8f6ef;
  line-height: 1.7;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #c9cfbf;
}
header span,
header strong {
  display: block;
}
header strong {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
main {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin: 0.6rem 0 1.5rem;
}
.eyebrow {
  color: #657345;
  letter-spacing: 0.1em;
}
section {
  padding: 1rem 0;
  border-bottom: 1px solid #c9cfbf;
}
label {
  display: block;
  margin: 1.1rem 0;
}
input,
select,
button {
  font: inherit;
  min-height: 48px;
  border: 1px solid #78836b;
  border-radius: 3px;
}
input,
select {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: #fff;
  margin-top: 0.4rem;
}
button {
  cursor: pointer;
  padding: 0.65rem 1.1rem;
  background: #264735;
  color: #fff;
  margin: 0.8rem 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #bb7227;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#notice {
  min-height: 2rem;
}
#qr {
  width: 210px;
  max-width: 100%;
  background: #fff;
}
#manual-secret {
  overflow-wrap: anywhere;
  font-family: monospace;
}
#logout {
  background: transparent;
  color: #264735;
}
article {
  border-top: 1px solid #c9cfbf;
  padding: 1rem 0;
}
footer {
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: #657345;
}

#confirm-account {
  display: inline-block;
  width: 1.2rem;
  min-height: 1.2rem;
  margin-right: 0.5rem;
}
#account-id {
  overflow-wrap: anywhere;
}
textarea {
  font: inherit;
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: 0.7rem;
  border: 1px solid #78836b;
  border-radius: 3px;
  background: #fff;
  margin-top: 0.4rem;
}
fieldset {
  min-width: 0;
  border: 0;
  border-top: 2px solid #b6bfad;
  padding: 1rem 0;
  margin: 1.5rem 0;
}
legend {
  font-weight: 700;
  padding-right: 1rem;
}
fieldset button {
  margin-right: 0.7rem;
  background: transparent;
  color: #264735;
}
#content-workspace p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#content-workspace h4 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}
#content-workspace form > button {
  margin-right: 0.5rem;
}
#content-workspace a {
  display: inline-block;
  padding: 0.5rem 0;
  min-height: 44px;
  color: #24573b;
}

#issuance-workspace {
  border-top: 2px solid #b6bfad;
  margin: 1.5rem 0;
  padding-top: 1rem;
}
#issuance-workspace p,
#participant-identity {
  overflow-wrap: anywhere;
}
#issuance-workspace input[type='checkbox'] {
  display: inline-block;
  width: 1.3rem;
  min-height: 1.3rem;
  margin-right: 0.6rem;
}
#issuance-workspace button {
  margin-right: 0.5rem;
}

#journey-ops {
  border-top: 2px solid #b6bfad;
  padding-top: 1rem;
  margin: 1rem 0;
}
#journey-ops p {
  overflow-wrap: anywhere;
}
#journey-ops img {
  display: block;
  max-width: 100%;
  height: auto;
}
#journey-ops input[type='checkbox'],
#content-workspace input[type='checkbox'] {
  display: inline-block;
  width: 1.3rem;
  min-height: 1.3rem;
  margin-right: 0.6rem;
}

.photo-location-map,
.destination-map iframe {
  display: block;
  width: 100%;
  min-width: 200px;
  height: 320px;
  border: 0;
}
.photo-preview,
.photo-gallery img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 28rem;
  object-fit: contain;
  margin: 1rem 0;
}
.photo-preview[hidden] {
  display: none;
}
.photo-gallery article {
  border-top: 1px solid var(--line, #aaa);
  padding: 1rem 0;
}
input[type='file'] {
  max-width: 100%;
}
#issuance-workspace:empty,
#journey-ops:empty,
#photo-ops:empty {
  display: none;
}

.slot-switch-confirmation {
  width: calc(100% - 2rem);
  max-width: 30rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid #78836b;
  border-radius: 6px;
  background: #f8f6ef;
  color: #213a31;
  box-shadow: 0 1rem 3rem #0003;
}
.slot-switch-confirmation::backdrop {
  background: rgb(15 27 22 / 60%);
}
.slot-switch-confirmation h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.5;
}
.slot-switch-confirmation p {
  margin: 0 0 1.25rem;
}
.slot-switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.slot-switch-actions button {
  flex: 1 1 12rem;
  margin: 0;
  white-space: normal;
}
.slot-switch-cancel {
  background: transparent;
  color: #264735;
}
.slot-switch-discard {
  background: #833b2e;
  border-color: #833b2e;
}
[data-participant-input='pointer'] [data-participant-focus]:focus {
  outline: none;
}
.participant-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.participant-shortcuts button {
  flex: 1 1 12rem;
  margin: 0;
  background: transparent;
  color: #264735;
}
.journey-action > h3 {
  margin-top: 0;
}
.journey-action > button {
  margin-right: 0.5rem;
}
#content-workspace details {
  margin: 1rem 0;
  border-top: 1px solid #c9cfbf;
  padding: 0.6rem 0;
}
#content-workspace summary {
  cursor: pointer;
  min-height: 48px;
  padding: 0.5rem 0;
  font-weight: 600;
}

/* Information hierarchy and task-focused navigation. Brand colors stay unchanged. */
h2,
h3 {
  font-size: 1.35rem;
  line-height: 1.5;
}
h4 {
  font-size: 1.15rem;
  line-height: 1.5;
}
p {
  margin: 0.7rem 0 1rem;
}
.experience-title {
  font-size: 1.75rem;
  line-height: 1.4;
  margin: 1.2rem 0 0.5rem;
}
.experience-meta {
  font-size: 0.95rem;
  color: #41554b;
}
.slot-summary h4,
#content-workspace .slot-summary h4 {
  font-size: 1.4rem;
  line-height: 1.4;
}
.slot-summary {
  padding: 1.4rem 0;
}
.journey-action h4,
#content-workspace .journey-action h4 {
  font-size: 1.55rem;
}
.journey-action > p:first-of-type {
  color: #52604e;
  font-size: 0.95rem;
}
.arrival-history p {
  padding: 0.6rem 0;
  border-bottom: 1px solid #dce1d4;
}
.button-secondary {
  background: transparent;
  color: #264735;
}
.notice-block,
.status-notice:not(:empty) {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 3px;
  line-height: 1.7;
}
.notice-block strong,
.status-notice:not(:empty)::before {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.status-notice:not(:empty)::before {
  content: attr(data-notice-label);
}
.notice-block p {
  margin: 0;
}
[data-notice='info'] {
  background: #eef6fc;
  border-color: #5181a4;
  color: #173c58;
}
[data-notice='caution'] {
  background: #fff3df;
  border-color: #af661a;
  color: #653b11;
}
[data-notice='success'] {
  background: #edf6ed;
  border-color: #58845c;
  color: #254c2a;
}
[data-notice='error'] {
  background: #fff0ef;
  border-color: #ac5148;
  color: #702b25;
}
.status-notice:empty {
  margin: 0;
  min-height: 0;
}
#environment-note {
  font-size: 0.875rem;
  color: #52604e;
  border-left: 3px solid #a9b19f;
  padding-left: 0.75rem;
}
#participant-identity {
  font-size: 0.875rem;
  color: #52604e;
}
#operator-navigation nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
#operator-navigation nav button {
  background: transparent;
  color: #264735;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
#operator-navigation nav [aria-current='page'] {
  background: #264735;
  color: #fff;
}
.task-menu > div {
  padding: 1.25rem 0;
  border-bottom: 1px solid #c9cfbf;
}
.task-menu button {
  width: 100%;
  text-align: left;
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.task-menu p {
  margin: 0.5rem 0 0;
  color: #52604e;
}
#issuance-workspace,
#journey-ops {
  border-top: 0;
  margin: 0;
}
#account-title:has(+ #participant-identity:empty) {
  display: none;
}
#journey-ops section {
  border-bottom: 0;
}
#content-workspace .arrival-history {
  border-bottom: 0;
}
button:disabled {
  cursor: not-allowed;
}
input[type='checkbox'] {
  width: 1.25rem;
  min-height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
}
#operator-navigation h2:focus:not(:focus-visible) {
  outline: none;
}
@media (max-width: 420px) {
  main {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  .experience-title {
    font-size: 1.5rem;
  }
  .notice-block,
  .status-notice:not(:empty) {
    padding: 0.8rem;
  }
  #operator-navigation nav button {
    flex: 1 1 45%;
  }
}
.status-notice[data-notice='plain']:not(:empty) {
  padding: 0;
  border: 0;
  background: none;
  color: #52604e;
  font-size: 0.95rem;
  margin: 0.75rem 0;
}
.status-notice[data-notice='plain']::before {
  display: none;
}

/* Language controls are shared by the participant header and the editorial form. */
.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem auto;
  max-width: 68rem;
  padding: 0 1rem;
}
.language-switch a {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  text-decoration: none;
}
.language-switch [aria-current='page'],
.language-switch [aria-pressed='true'] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
html[lang='en'] {
  overflow-wrap: anywhere;
}

/* Preserve editorial line breaks, including separate quiz and photo tasks. */
.route-copy {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
