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

.tameshy-site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 80px;
  /* 本文（幅1100px）と左右を揃える。 */
  padding: 0 max(56px, calc((100% - 1100px) / 2));
  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;
  padding: 3px;
  border-radius: 999px;
  background: #f1f1f1;
}

/* 切り替えはヘッダーの真ん中に置く。スマートフォンは幅が足りないので右に寄せ、「の方」を省く。 */
@media (min-width: 761px) {
  .tameshy-site-header__audiences {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .tameshy-site-header__login {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .tameshy-site-header__audiences {
    margin-left: auto;
  }

  .tameshy-site-header__login {
    margin-left: 0;
  }
}

.tameshy-site-header__audiences a {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111;
  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__login {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid #dedede;
  border-radius: 10px;
  color: #111;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.tameshy-site-header__login:hover { background: #f5f5f5; }

/* ブランドの方には「ブランドを登録」（登録とログインの入口）、クリエイターの方には「マイページ」を見せる。 */
html:not([data-audience="creator"]) .tameshy-site-header__login[data-for="creator"],
html[data-audience="creator"] .tameshy-site-header__login[data-for="brand"] {
  display: none;
}

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

.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;
  }

  .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;
  }

}

@media (max-width: 760px) {
  .tameshy-site-header { padding: 0 10px; gap: 6px; }
  .tameshy-site-header__brand { font-size: 17px; }
  .tameshy-site-header__audiences a { min-height: 36px; padding: 0 8px; }
  .tameshy-site-header__login { min-height: 36px; padding: 0 9px; font-size: 11px; border-radius: 8px; }
}
@media (max-width: 360px) {
  .tameshy-site-header__audiences a { padding: 0 6px; font-size: 10px; }
  .tameshy-site-header__login { padding: 0 7px; font-size: 10px; }
}

/* 「の方」まで入らない幅では省く。 */
@media (max-width: 424px) {
  .tameshy-site-header__suffix { display: none; }
}

@media (max-width: 360px) {
  .tameshy-site-header__long { display: none; }
}

.tameshy-site-footer {
  padding: 26px max(56px, calc((100% - 1100px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: #111;
  color: #fff;
  font-family: Inter, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  letter-spacing: -.01em;
}

.tameshy-site-footer a,
.tameshy-site-footer .analytics-settings {
  color: #fff;
  text-decoration: none;
}

.tameshy-site-footer__logo {
  justify-self: start;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.055em;
}

.tameshy-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.tameshy-site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tameshy-site-footer .analytics-settings {
  justify-self: end;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 860px) {
  .tameshy-site-footer {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .tameshy-site-footer__logo,
  .tameshy-site-footer .analytics-settings { justify-self: center; }
}
