.tameshy-site-header,
.tameshy-site-header *,
.registration-shortcut,
.registration-shortcut * {
  box-sizing: border-box;
}

.tameshy-site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #ededed;
  background: #fff;
  color: #111;
  font-family: Inter, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: -.025em;
}

.tameshy-site-header__brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: inherit;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tameshy-site-header__audiences {
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: #f1f1f1;
}

.tameshy-site-header__audiences a {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #666;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tameshy-site-header__audiences a[aria-current="page"] {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 5px #00000014;
}

.tameshy-site-header__audiences a:hover {
  color: #111;
}

.tameshy-site-header__menu {
  display: block;
  flex: 0 0 auto;
}

.tameshy-site-header__summary {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedede;
  border-radius: 10px;
  color: #222;
  cursor: pointer;
  list-style: none;
}

.tameshy-site-header__summary::-webkit-details-marker {
  display: none;
}

.tameshy-site-header__summary::marker {
  content: "";
}

.tameshy-site-header__summary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  transition: transform .16s ease;
}

.tameshy-site-header__menu[open] > .tameshy-site-header__summary svg {
  transform: rotate(90deg);
}

.tameshy-site-header__nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 34px;
  width: min(290px, calc(100vw - 28px));
  padding: 8px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px #0000001f;
}

.tameshy-site-header__menu[open] + .tameshy-site-header__nav {
  display: flex;
}

.tameshy-site-header__nav a {
  min-height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.tameshy-site-header__nav a:hover {
  background: #f5f5f5;
  color: #111;
}

.tameshy-site-header a:focus-visible,
.tameshy-site-header summary:focus-visible,
.registration-shortcut:focus-visible {
  outline: 3px solid #d77b55;
  outline-offset: 3px;
}

.registration-shortcut {
  position: fixed;
  z-index: 90;
  right: max(28px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 280px;
  max-width: calc(100vw - 28px);
  padding: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 999px;
  background: #f1f1f1;
  box-shadow: 0 4px 16px #00000014;
  font-family: Inter, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  text-decoration: none;
}

.registration-shortcut__button {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 5px #00000014;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .16s ease;
}

.registration-shortcut__button svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

@media (hover: hover) {
  .registration-shortcut:hover .registration-shortcut__button {
    background: #fafafa;
  }
}

.registration-shortcut:active .registration-shortcut__button {
  background: #f5f5f5;
}

.join-open .registration-shortcut {
  visibility: hidden;
  pointer-events: none;
}

.landing .landing-foot {
  padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  .tameshy-site-header {
    height: 68px;
    padding: 0 14px;
    gap: 8px;
  }

  .tameshy-site-header__brand {
    font-size: 20px;
  }

  .tameshy-site-header__audiences {
    padding: 2px;
  }

  .tameshy-site-header__audiences a {
    padding: 0 9px;
    font-size: 11px;
  }

  .tameshy-site-header__nav {
    right: 14px;
  }

  .registration-shortcut {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 268px;
  }

  .registration-shortcut__button {
    min-height: 48px;
    padding: 0 16px;
    font-size: 13px;
  }

  .landing .scroll-cue {
    bottom: 100px;
  }
}

@media (max-width: 360px) {
  .tameshy-site-header {
    padding: 0 12px;
    gap: 6px;
  }

  .tameshy-site-header__brand {
    font-size: 18px;
  }

  .tameshy-site-header__audiences a {
    padding: 0 7px;
    font-size: 10px;
  }

  .tameshy-site-header__nav {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tameshy-site-header__summary svg,
  .registration-shortcut__button {
    transition: none;
  }
}
