html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    .tool-suite-header,
    .memo-app-header {
      flex-direction: column;
    }

    .tool-grid {
      grid-template-columns: 1fr;
    }

    .tool-textarea {
      min-height: 180px;
    }
  }
  background: #181c20;
  overflow-x: hidden;
  overflow-y: auto;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(4, 12, 18, 0.2), rgba(4, 12, 18, 0.52)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 32px);
  z-index: 0;
  pointer-events: none;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(20, 32, 44, 0.78), rgba(4, 8, 12, 0.96));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.boot-screen-hidden {
  opacity: 0;
  visibility: hidden;
}
.boot-screen-inner {
  width: min(560px, calc(100vw - 48px));

    .tool-suite,
    .memo-app {
      padding: 0.95em;
    }

    .tool-param-row {
      grid-template-columns: 1fr;
      gap: 0.25em;
    }
  padding: 1.4em 1.5em;
  border-radius: 18px;
  background: rgba(8, 13, 18, 0.82);
  border: 1px solid rgba(126, 207, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.boot-kicker {
  margin: 0 0 0.8em 0;
  color: #7ecfff;
  font-size: 0.78em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.boot-log {
  display: grid;
  gap: 0.45em;
}
.boot-line {
  color: #d8efff;
  font-size: 0.92em;
  opacity: 0;
  animation: bootLineIn 0.22s ease forwards;
}
@keyframes bootLineIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visitor-hud {
  position: fixed;
  right: 18px;
  top: 78px;
  z-index: 4;
  width: min(286px, calc(100vw - 36px));
  max-height: calc(100vh - 130px);
  padding: 0.9em 1em;
  border-radius: 16px;
  background: rgba(8, 14, 20, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  pointer-events: none;
  overflow: auto;
}
.visitor-hud-kicker {
  margin: 0 0 0.7em 0;
  color: rgba(223, 243, 255, 0.8);
  font-size: 0.72em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.visitor-grid {
  display: grid;
  gap: 0.55em;
}
.visitor-section {
  display: grid;
  gap: 0.36em;
  padding-top: 0.2em;
}
.visitor-section + .visitor-section {
  padding-top: 0.6em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.visitor-section-title {
  margin: 0 0 0.2em 0;
  color: rgba(171, 221, 255, 0.82);
  font-size: 0.7em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.visitor-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 0.8em;
  align-items: baseline;
}
.visitor-row span {
  color: rgba(199, 220, 236, 0.62);
  font-size: 0.68em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.visitor-row strong {
  color: rgba(239, 248, 255, 0.82);
  font-size: 0.76em;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.terminal-emulator {
  background: #181c20;
  border-radius: 6px;
  padding: 0.7em 1em 0.3em 0;
  margin-bottom: 1em;
  min-height: 180px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}
.terminal-output {
  color: #e0e0e0;
  font-family: inherit;
  font-size: 0.98em;
  min-height: 0;
  margin-bottom: 0.1em;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-line {
  display: flex;
  align-items: center;
  min-height: 1.5em;
}
.terminal-prompt {
  color: #7ecfff;
  font-weight: bold;
  font-family: inherit;
  font-size: 0.98em;
  margin-right: 0.2em;
}
.window {
  position: absolute;
  left: 50px;
  top: 120px;
  min-width: 340px;
  min-height: 210px;
  resize: none;
  user-select: none;
  transition: box-shadow 0.2s;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37), 0 0 0 2px #7ecfff33;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(14px);
  z-index: 12;
}
.window-enter {
  animation: windowEnter 0.28s ease;
}
.window-minimizing {
  pointer-events: none;
  animation: windowMinimize 0.22s ease forwards;
  transform-origin: center bottom;
}
.browser-window {
  min-width: 420px;
  min-height: 280px;
}
.window-hidden {
  display: none;
}
.window-header {
  cursor: move;
  user-select: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.window-resize-handle {
  position: absolute;
  right: 0; bottom: 0;
  width: 18px; height: 18px;
  background: transparent;
  cursor: se-resize;
  z-index: 2;
}
.browser-resize-handle {
  z-index: 20;
  width: 22px;
  height: 22px;
}
.window-resize-handle:after {
  content: '';
  display: block;
  width: 100%; height: 100%;
  border-right: 2px solid #7ecfff;
  border-bottom: 2px solid #7ecfff;
  border-radius: 0 0 6px 0;
  box-sizing: border-box;
}
.terminal-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  flex: 1 1 auto;
}
.browser-header {
  border-bottom: 1px solid rgba(126, 207, 255, 0.12);
}
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.7em 1em;
  background: rgba(12, 18, 24, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-toolbar-label {
  color: #8ea8bc;
  font-size: 0.74em;
  letter-spacing: 0.08em;
}
.browser-address {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(126, 207, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 12, 17, 0.92);
  color: #d8eefd;
  padding: 0 0.9em;
  font: inherit;
  font-size: 0.84em;
}
.browser-open-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  border-radius: 10px;
  text-decoration: none;
  color: #d8efff;
  background: rgba(126, 207, 255, 0.14);
  border: 1px solid rgba(126, 207, 255, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.browser-open-external:hover {
  background: rgba(126, 207, 255, 0.22);
  transform: translateY(-1px);
}
.browser-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #0c1218;
}
.browser-embed-note {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  max-width: 320px;
  padding: 0.7em 0.9em;
  border-radius: 12px;
  background: rgba(10, 15, 20, 0.7);
  border: 1px solid rgba(126, 207, 255, 0.12);
  color: #afc5d8;
  font-size: 0.8em;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}
.browser-embed-note p {
  margin: 0;
}
.browser-embed-note p + p {
  margin-top: 0.35em;
}
.browser-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
.browser-custom-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: linear-gradient(180deg, rgba(14, 21, 27, 0.96), rgba(10, 15, 20, 0.98));
}
.browser-custom-hidden {
  display: none;
}
.browser-loading,
.browser-error {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8em;
  color: #d9efff;
  font-size: 0.94em;
}
.browser-error a {
  color: #8bf38f;
  text-decoration: none;
}
.qiita-feed {
  padding: 1.25em;
}
.qiita-feed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.1em;
}
.qiita-feed-kicker {
  margin: 0 0 0.35em 0;
  color: #8bf38f;
  font-size: 0.76em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qiita-feed-title {
  margin: 0;
  color: #eff9ff;
  font-size: 1.25em;
  font-weight: 700;
}
.qiita-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 0.9em;
  border-radius: 999px;
  text-decoration: none;
  color: #d9efff;
  background: rgba(139, 243, 143, 0.12);
  border: 1px solid rgba(139, 243, 143, 0.24);
}
.qiita-card-list {
  display: grid;
  gap: 0.9em;
}
.qiita-card {
  padding: 1em;
  border-radius: 16px;
  background: rgba(18, 27, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.qiita-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 0.6em;
  color: #97afc2;
  font-size: 0.76em;
}
.qiita-card-title {
  margin: 0 0 0.8em 0;
  font-size: 1em;
  line-height: 1.5;
}
.qiita-card-title a {
  color: #f3fbff;
  text-decoration: none;
}
.qiita-card-title a:hover {
  color: #8bf38f;
}
.qiita-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}
.qiita-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28em 0.65em;
  border-radius: 999px;
  background: rgba(139, 243, 143, 0.1);
  border: 1px solid rgba(139, 243, 143, 0.14);
  color: #aef7b1;
  font-size: 0.74em;
}
.github-feed {
  padding: 1.25em;
}
.github-profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1em;
  align-items: start;
  margin-bottom: 1em;
  padding: 1em;
  border-radius: 18px;
  background: rgba(18, 27, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.github-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(126, 207, 255, 0.18);
}
.github-profile-copy {
  min-width: 0;
}
.github-feed-kicker {
  margin: 0 0 0.35em 0;
  color: #7ecfff;
  font-size: 0.76em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.github-profile-name {
  margin: 0;
  color: #eff9ff;
  font-size: 1.25em;
  font-weight: 700;
}
.github-profile-handle {
  margin: 0.2em 0 0.6em 0;
  color: #8ea8bc;
  font-size: 0.86em;
}
.github-profile-bio {
  margin: 0;
  color: #d7ebf7;
  font-size: 0.9em;
  line-height: 1.6;
}
.github-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.8em;
}
.github-profile-stats span {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.12);
  color: #d8efff;
  font-size: 0.76em;
}
.github-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 0.9em;
  border-radius: 999px;
  text-decoration: none;
  color: #d9efff;
  background: rgba(126, 207, 255, 0.12);
  border: 1px solid rgba(126, 207, 255, 0.24);
}
.github-repo-list {
  display: grid;
  gap: 0.9em;
}
.github-repo-card {
  padding: 1em;
  border-radius: 16px;
  background: rgba(18, 27, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.github-repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  margin-bottom: 0.55em;
}
.github-repo-title {
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}
.github-repo-title a {
  color: #f3fbff;
  text-decoration: none;
}
.github-repo-title a:hover {
  color: #7ecfff;
}
.github-stars {
  color: #ffd66f;
  font-size: 0.78em;
  white-space: nowrap;
}
.github-repo-description {
  margin: 0 0 0.8em 0;
  color: #d4e5f3;
  font-size: 0.88em;
  line-height: 1.6;
}
.github-repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  color: #97afc2;
  font-size: 0.76em;
}
.github-language {
  display: inline-flex;
  align-items: center;
  padding: 0.28em 0.65em;
  border-radius: 999px;
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.14);
  color: #a9deff;
}
.memo-app {
  min-height: 100%;
  padding: 1.25em;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 1em;
  color: #e9f6ff;
}
.memo-app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
}
.memo-app-kicker {
  margin: 0 0 0.35em 0;
  color: #ffd66f;
  font-size: 0.76em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.memo-app-title {
  margin: 0;
  font-size: 1.34em;
  color: #f7fbff;
}
.memo-app-copy {
  margin: 0;
  max-width: 280px;
  color: #98b2c5;
  font-size: 0.82em;
  line-height: 1.6;
}
.memo-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}
.memo-field {
  display: grid;
  gap: 0.45em;
  min-width: min(320px, 100%);
  color: #97afc2;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.memo-input {
  width: min(360px, 100%);
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(126, 207, 255, 0.18);
  background: rgba(8, 12, 17, 0.92);
  color: #e7f5ff;
  padding: 0 0.9em;
  font: inherit;
}
.memo-actions {
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
}
.memo-button {
  appearance: none;
  border: 1px solid rgba(126, 207, 255, 0.24);
  border-radius: 999px;
  height: 38px;
  padding: 0 1em;
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.26), rgba(126, 207, 255, 0.12));
  color: #f3fbff;
  font: inherit;
  font-size: 0.84em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.memo-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.32), rgba(126, 207, 255, 0.16));
}
.memo-button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cfe6f7;
}
.memo-editor {
  width: 100%;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(8, 12, 17, 0.94);
  color: #edf7ff;
  padding: 1em;
  box-sizing: border-box;
  resize: none;
  font: inherit;
  font-size: 0.95em;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.memo-editor:focus,
.memo-input:focus {
  outline: 2px solid rgba(126, 207, 255, 0.22);
  outline-offset: 0;
}
.memo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}
.memo-status,
.memo-hint {
  margin: 0;
  font-size: 0.8em;
  line-height: 1.5;
}
.memo-status {
  color: #d5e9f8;
}
.memo-status[data-tone="success"] {
  color: #98efae;
}
.memo-status[data-tone="warning"] {
  color: #ffd66f;
}
.memo-hint {
  color: #8ea8bc;
}
.tool-suite {
  min-height: 100%;
  padding: 1.25em;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 1em;
  color: #e9f6ff;
}
.tool-suite-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
}
.tool-suite-kicker {
  margin: 0 0 0.35em 0;
  color: #8bf38f;
  font-size: 0.76em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tool-suite-title {
  margin: 0;
  color: #f7fbff;
  font-size: 1.34em;
}
.tool-suite-copy {
  margin: 0;
  max-width: 320px;
  color: #98b2c5;
  font-size: 0.82em;
  line-height: 1.6;
}
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
}
.tool-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 36px;
  padding: 0 0.95em;
  background: rgba(255, 255, 255, 0.04);
  color: #cfe6f7;
  font: inherit;
  font-size: 0.82em;
  cursor: pointer;
}
.tool-tab-active {
  background: rgba(126, 207, 255, 0.18);
  border-color: rgba(126, 207, 255, 0.28);
  color: #f3fbff;
}
.tool-panels {
  min-height: 0;
}
.tool-panel {
  display: none;
  min-height: 100%;
}
.tool-panel-active {
  display: block;
}
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1em;
}
.tool-field {
  display: grid;
  gap: 0.45em;
  color: #97afc2;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-textarea {
  width: 100%;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(8, 12, 17, 0.94);
  color: #edf7ff;
  padding: 1em;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  font-size: 0.92em;
  line-height: 1.7;
}
.tool-textarea-readonly {
  color: #c7def1;
}
.tool-textarea:focus {
  outline: 2px solid rgba(126, 207, 255, 0.22);
  outline-offset: 0;
}
.tool-card {
  padding: 1em;
  border-radius: 18px;
  background: rgba(18, 27, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.tool-card-center {
  display: grid;
  place-items: center;
  gap: 1em;
}
.tool-card-title {
  margin: 0 0 0.8em 0;
  color: #eff9ff;
  font-size: 0.94em;
}
.tool-card-actions {
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
  margin-top: 1em;
}
.tool-qr-image {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 0.7em;
  box-sizing: border-box;
}
.tool-param-list {
  display: grid;
  gap: 0.55em;
}
.tool-param-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.8em;
  align-items: start;
}
.tool-param-row span {
  color: #97afc2;
  font-size: 0.76em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.tool-param-row strong {
  color: #e9f6ff;
  font-size: 0.82em;
  overflow-wrap: anywhere;
}
.tool-empty {
  margin: 0;
  color: #8ea8bc;
  font-size: 0.82em;
}
.background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: url('pic/uniLabomain01 (1).jpg') no-repeat center center/cover;
  filter: brightness(0.62);
  z-index: -1;
  pointer-events: none;
}
.terminal {
  margin: 40px auto 30px auto;
  background: rgba(20, 24, 28, 0.97);
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
  width: 420px;
  max-width: 96vw;
  z-index: 12;
  color: #e0e0e0;
  border: 2px solid #333;
  position: relative;
}
.login-terminal {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.7em 1em;
  background: #23272e;
  border-radius: 14px 14px 0 0;
  border-bottom: 2px solid #333;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5em;
  display: inline-block;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.title {
  margin-left: 1em;
  margin-right: auto;
  font-weight: bold;
  color: #7ecfff;
  font-size: 1em;
  letter-spacing: 0.04em;
}
.window-close {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-left: 1em;
  margin-right: 0.35em;
  border: 1px solid rgba(190, 58, 50, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7b72, #ff5f56);
  color: rgba(50, 12, 10, 0);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.window-minimize {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-left: 1em;
  margin-right: 0.35em;
  border: 1px solid rgba(171, 124, 24, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd66f, #ffbd2e);
  color: rgba(61, 40, 4, 0);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.window-minimize:hover {
  color: rgba(61, 40, 4, 0.82);
  transform: scale(1.06);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 0 8px rgba(255, 189, 46, 0.22);
}
.window-minimize:focus-visible {
  outline: 2px solid rgba(255, 189, 46, 0.35);
  outline-offset: 2px;
}
.window-close:hover {
  color: rgba(50, 12, 10, 0.78);
  transform: scale(1.06);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 0 8px rgba(255, 95, 86, 0.22);
}
.window-close:focus-visible {
  outline: 2px solid rgba(255, 95, 86, 0.35);
  outline-offset: 2px;
}
.terminal-body {
  padding: 1.2em 1.2em 1em 1.2em;
  font-size: 0.98em;
}
.login-block {
  margin-bottom: 1.2em;
  font-size: 0.98em;
  line-height: 1.7em;
  font-family: inherit;
}
.login-text {
  color: #b6eaff;
  font-family: inherit;
  font-size: 0.98em;
}
.login-user {
  color: #ffbd2e;
  font-weight: bold;
}
.login-pass {
  color: #e0e0e0;
  letter-spacing: 0.18em;
}
.links-block {
  text-align: center;
}
.links-label {
  color: #7ecfff;
  font-size: 0.98em;
  margin-bottom: 0.3em;
  display: block;
  letter-spacing: 0.04em;
}
.highlight {
  color: #7ecfff;
  font-weight: bold;
}
.command {
  color: #ffbd2e;
  background: #23272e;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: inherit;
}
.links {
  margin-top: 0.7em;
  display: flex;
  gap: 1.2em;
  justify-content: center;
}
.links a {
  color: #7ecfff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.98em;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 6px #222, 0 0 2px #7ecfff;
}
.links a:hover {
  color: #ffbd2e;
  text-shadow: 0 0 8px #ffbd2e, 0 0 2px #fff;
}

/* サイト全体のWEB感を強調 */
/* サイト全体のWEB感を強調 */
.site-header {
  width: 100vw;
  background: rgba(18, 24, 30, 0.82);
  padding: 0.6em 1.2em;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  backdrop-filter: blur(14px);
}
.site-logo {
  color: #7ecfff;
  font-size: 1.05em;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px #222, 0 0 2px #7ecfff;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65em;
  min-width: 180px;
}
.topbar-right {
  justify-content: flex-end;
}
.topbar-brand {
  color: #dcecff;
  font-size: 0.86em;
  letter-spacing: 0.06em;
}
.topbar-chip,
.status-pill,
.status-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 0.7em;
  border-radius: 999px;
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.2);
  color: #d9efff;
  font-size: 0.78em;
}
.topbar-handle {
  color: #b8def8;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(8, 20, 32, 0.45);
}
.status-clock {
  min-width: 54px;
}
.desktop-shortcuts {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 6;
  pointer-events: none;
}
.desktop-icon {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 78px;
  min-height: 82px;
  padding: 0.7em 0.4em;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 31, 0.28);
  color: #eef7ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.desktop-icon:hover {
  transform: translateY(-2px);
  background: rgba(17, 24, 31, 0.42);
  border-color: rgba(126, 207, 255, 0.28);
}
.desktop-icon-grabbed {
  cursor: grabbing;
}
.desktop-icon-dragging {
  transform: scale(1.04);
  background: rgba(17, 24, 31, 0.5);
  border-color: rgba(126, 207, 255, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}
.desktop-icon-glyph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.28), rgba(126, 207, 255, 0.1));
  border: 1px solid rgba(126, 207, 255, 0.24);
  color: #d6eeff;
  font-size: 0.9em;
  font-weight: 700;
}
.desktop-icon-label {
  font-size: 0.74em;
  letter-spacing: 0.04em;
  text-align: center;
}
main {
  margin-top: 60px;
  min-height: calc(100vh - 120px);
  position: relative;
}
.site-footer {
  width: 100vw;
  background: rgba(18, 24, 30, 0.72);
  color: #7ecfff;
  padding: 0.65em 1em;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 18;
  font-size: 0.98em;
  letter-spacing: 0.04em;
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1em;
  box-sizing: border-box;
  backdrop-filter: blur(18px);
}
.start-button {
  appearance: none;
  -webkit-appearance: none;
  width: 54px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(126, 207, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(135deg, rgba(126, 207, 255, 0.22), rgba(126, 207, 255, 0.1) 62%, rgba(170, 214, 255, 0.12));
  color: #e8f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, filter 0.16s ease;
}
.start-button:hover,
.start-button-active {
  transform: translateY(-1px);
  border-color: rgba(126, 207, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, rgba(126, 207, 255, 0.3), rgba(126, 207, 255, 0.14) 62%, rgba(170, 214, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(126, 207, 255, 0.16);
  filter: saturate(1.05);
}
.start-button-badge {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(5, 11, 16, 0.68), rgba(9, 17, 24, 0.96));
  border: 1px solid rgba(126, 207, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.start-button-badge::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.18), rgba(126, 207, 255, 0.08));
  opacity: 0.9;
}
.start-button-badge-core {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.34), rgba(126, 207, 255, 0.12));
  border: 1px solid rgba(126, 207, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.start-button-badge-letter {
  position: relative;
  top: -0.5px;
  color: #f2fdff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 0 10px rgba(126, 207, 255, 0.22);
}
.start-menu {
  position: fixed;
  left: 16px;
  bottom: 76px;
  z-index: 24;
  width: min(360px, calc(100vw - 32px));
  padding: 1em;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 20, 27, 0.94), rgba(9, 14, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform-origin: left bottom;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.start-menu-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
}
.start-menu-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.start-menu-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8em;
  margin-bottom: 0.95em;
}
.start-menu-kicker {
  margin: 0 0 0.3em 0;
  color: #8bf38f;
  font-size: 0.76em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.start-menu-title {
  margin: 0;
  color: #f5fbff;
  font-size: 1.25em;
}
.start-menu-copy {
  margin: 0;
  max-width: 140px;
  color: #8ea8bc;
  font-size: 0.78em;
  line-height: 1.5;
  text-align: right;
}
.start-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
}
.start-menu-item {
  appearance: none;
  -webkit-appearance: none;
  min-height: 66px;
  padding: 0.75em 0.8em;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(18, 27, 35, 0.86);
  color: #eaf6ff;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75em;
  align-items: center;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.start-menu-item:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 207, 255, 0.22);
  background: rgba(21, 31, 40, 0.92);
}
.start-menu-item strong,
.start-menu-item small {
  display: block;
}
.start-menu-item strong {
  color: #f4fbff;
  font-size: 0.9em;
}
.start-menu-item small {
  margin-top: 0.18em;
  color: #8ea8bc;
  font-size: 0.74em;
}
.start-menu-glyph {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.26), rgba(126, 207, 255, 0.08));
  border: 1px solid rgba(126, 207, 255, 0.2);
  color: #d9efff;
  font-size: 0.88em;
  font-weight: 700;
}
.start-menu-link {
  color: #eaf6ff;
}
.start-menu-footer {
  display: flex;
  gap: 0.7em;
  margin-top: 0.9em;
}
.start-menu-action {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  height: 36px;
  padding: 0 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dbefff;
  font: inherit;
  font-size: 0.8em;
  cursor: pointer;
}
.start-menu-action:hover {
  border-color: rgba(126, 207, 255, 0.24);
  background: rgba(126, 207, 255, 0.08);
}
.dock {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.35em 0.5em;
  border-radius: 18px;
  background: rgba(9, 14, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dock-item {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  font: inherit;
  border-radius: 14px;
  border: 1px solid rgba(126, 207, 255, 0.18);
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.18), rgba(126, 207, 255, 0.06));
  color: #e0f2ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.dock-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}
.dock-item-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(126, 207, 255, 0.22), 0 12px 26px rgba(126, 207, 255, 0.18);
  border-color: rgba(126, 207, 255, 0.34);
  background: linear-gradient(180deg, rgba(126, 207, 255, 0.26), rgba(126, 207, 255, 0.1));
}
.dock-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(126, 207, 255, 0.86);
  transform: translateX(-50%) scale(0.2);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.dock-item-open::after {
  opacity: 0.9;
  transform: translateX(-50%) scale(1);
}
.dock-glyph {
  font-size: 0.9em;
  font-weight: 700;
}
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 30;
  display: grid;
  gap: 0.7em;
  pointer-events: none;
}
.toast {
  min-width: 220px;
  max-width: min(320px, calc(100vw - 36px));
  padding: 0.8em 0.95em;
  border-radius: 14px;
  background: rgba(10, 16, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaf6ff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  font-size: 0.86em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast[data-tone="success"] {
  border-color: rgba(139, 243, 143, 0.18);
}
.toast[data-tone="warning"] {
  border-color: rgba(255, 214, 111, 0.24);
}
.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-exit {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}

@keyframes windowEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes windowMinimize {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(40px) scale(0.88);
  }
}
.footer-clock {
  position: absolute;
  right: 28px;
  min-width: 132px;
  color: #dff2ff;
  font-size: 0.8em;
  letter-spacing: 0.06em;
  text-align: right;
  pointer-events: none;
}

@media (max-width: 720px) {
  .visitor-hud {
    top: auto;
    bottom: 72px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: 38vh;
  }

  .desktop-shortcuts {
    display: none;
  }

  .topbar-left,
  .topbar-right {
    min-width: auto;
    gap: 0.4em;
  }

  .topbar-chip,
  .status-pill {
    display: none;
  }

  .site-logo {
    font-size: 0.95em;
  }

  .site-footer {
    justify-content: flex-start;
    padding-right: 72px;
  }

  .topbar-handle {
    display: none;
  }

  .start-menu {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 72px;
  }

  .start-menu-top {
    flex-direction: column;
  }

  .start-menu-copy {
    max-width: none;
    text-align: left;
  }

  .start-menu-grid {
    grid-template-columns: 1fr;
  }

  .start-menu-footer {
    flex-direction: column;
  }
}
